BUG 5031:
[bgpcep.git] / bgp / linkstate / src / main / java / org / opendaylight / protocol / bgp / linkstate / impl / attribute / LinkstateAttributeParser.java
similarity index 94%
rename from bgp/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/attribute/LinkstateAttributeParser.java
rename to bgp/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/impl/attribute/LinkstateAttributeParser.java
index 65e8401f6aca89731d49b3e87e64242a0cd73653..d8ca16911e8b1d3a139b4517ed02017aded86d27 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.protocol.bgp.linkstate.attribute;
+package org.opendaylight.protocol.bgp.linkstate.impl.attribute;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.HashMultimap;
@@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
  *
  * @see <a href="http://tools.ietf.org/html/draft-gredler-idr-ls-distribution-04">BGP-LS draft</a>
  */
-public class LinkstateAttributeParser implements AttributeParser, AttributeSerializer {
+public final class LinkstateAttributeParser implements AttributeParser, AttributeSerializer {
 
     private static final Logger LOG = LoggerFactory.getLogger(LinkstateAttributeParser.class);
 
@@ -107,7 +107,8 @@ public class LinkstateAttributeParser implements AttributeParser, AttributeSeria
         if (mpu != null && mpu.getMpUnreachNlri() != null) {
             final DestinationType dt = mpu.getMpUnreachNlri().getWithdrawnRoutes().getDestinationType();
             if (dt instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev150210.update.attributes.mp.unreach.nlri.withdrawn.routes.destination.type.DestinationLinkstateCase) {
-                for (final CLinkstateDestination d : ((org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev150210.update.attributes.mp.unreach.nlri.withdrawn.routes.destination.type.DestinationLinkstateCase) dt).getDestinationLinkstate().getCLinkstateDestination()) {
+                for(final CLinkstateDestination d :((org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev150210.update.attributes.mp.unreach.nlri.withdrawn.
+                    routes.destination.type.DestinationLinkstateCase) dt).getDestinationLinkstate().getCLinkstateDestination()) {
                     return d;
                 }
             }
@@ -134,7 +135,7 @@ public class LinkstateAttributeParser implements AttributeParser, AttributeSeria
     /**
      * Serialize linkstate attributes.
      *
-     * @param attribute      DataObject representing LinkstatePathAttribute
+     * @param attribute DataObject representing LinkstatePathAttribute
      * @param byteAggregator ByteBuf where all serialized data are aggregated
      */