From 4dce3cd25ec520ce51da1ed34e5b439eea19232d Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Wed, 29 May 2019 15:15:14 +0200 Subject: cleanup v3po customizers - remove unnecessary full paths - reformat Change-Id: If918be3de8b4839cd3a50d73d9de7c3e0b32ab3d Signed-off-by: Michal Cmarada --- .../main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java') diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java index f3fd515d0..63347bf24 100644 --- a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java +++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/read/L2Customizer.java @@ -51,8 +51,7 @@ public class L2Customizer extends FutureJVppCustomizer implements InitializingRe private static final Logger LOG = LoggerFactory.getLogger(L2Customizer.class); private final InterconnectionReadUtils icReadUtils; - public L2Customizer(@Nonnull final FutureJVppCore futureJVppCore, - @Nonnull final NamingContext interfaceContext, + public L2Customizer(@Nonnull final FutureJVppCore futureJVppCore, @Nonnull final NamingContext interfaceContext, @Nonnull final NamingContext bridgeDomainContext, @Nonnull final InterfaceCacheDumpManager dumpManager) { super(futureJVppCore); @@ -82,13 +81,9 @@ public class L2Customizer extends FutureJVppCustomizer implements InitializingRe } @Override - public Initialized init( - @Nonnull final InstanceIdentifier id, - @Nonnull final L2 readValue, - @Nonnull final ReadContext ctx) { - final org.opendaylight.yang.gen.v1.http.fd.io.hc2vpp.yang.v3po.rev190527.interfaces._interface.L2Builder - l2Builder = - new org.opendaylight.yang.gen.v1.http.fd.io.hc2vpp.yang.v3po.rev190527.interfaces._interface.L2Builder(); + public Initialized init(@Nonnull final InstanceIdentifier id, @Nonnull final L2 readValue, + @Nonnull final ReadContext ctx) { + final L2Builder l2Builder = new L2Builder(); final Interconnection interconnection = readValue.getInterconnection(); if (interconnection != null) { @@ -110,10 +105,9 @@ public class L2Customizer extends FutureJVppCustomizer implements InitializingRe return Initialized.create(getCfgId(id), l2Builder.build()); } - private InstanceIdentifier getCfgId( - final InstanceIdentifier id) { + private InstanceIdentifier getCfgId(final InstanceIdentifier id) { return InterfaceCustomizer.getCfgId(RWUtils.cutId(id, Interface.class)) .augmentation(VppInterfaceAugmentation.class) - .child(org.opendaylight.yang.gen.v1.http.fd.io.hc2vpp.yang.v3po.rev190527.interfaces._interface.L2.class); + .child(L2.class); } } -- cgit 1.2.3-korg