Trim down AdvertizedRoute size
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / entry / AdvertizedRoute.java
index 2fc8b0763655f403d253f4bc6064bfeca31e9200..2fdbe64af177622764433df627d331461333b41c 100644 (file)
@@ -27,7 +27,6 @@ import org.opendaylight.yangtools.yang.binding.Identifier;
 public final class AdvertizedRoute<C extends Routes & DataObject & ChoiceIn<Tables>,
         S extends ChildOf<? super C>, R extends Route & ChildOf<? super S> & Identifiable<I>,
         I extends Identifier<R>> extends AbstractAdvertizedRoute<C, S, R, I> {
-    private final boolean isFirstBestPath;
 
     public AdvertizedRoute(final RIBSupport<C, S, R, I> ribSupport, final R route, final Attributes attributes,
             final PeerId fromPeerId, final boolean depreferenced) {
@@ -36,11 +35,10 @@ public final class AdvertizedRoute<C extends Routes & DataObject & ChoiceIn<Tabl
 
     public AdvertizedRoute(final RIBSupport<C, S, R, I> ribSupport, final boolean isFirstBestPath,
             final R route, final Attributes attributes, final PeerId fromPeerId, final boolean depreferenced) {
-        super(ribSupport, route, fromPeerId, attributes, depreferenced);
-        this.isFirstBestPath = isFirstBestPath;
+        super(ribSupport, route, fromPeerId, attributes, depreferenced, isFirstBestPath);
     }
 
     public boolean isFirstBestPath() {
-        return this.isFirstBestPath;
+        return isFirstBestPath;
     }
 }