X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-persister-feature-adapter%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfigpusherfeature%2FConfigPusherFeatureActivator.java;h=c20c6f9182caa895cd50e51ee36dab887a41c4f0;hb=46306a374d717b1579987bd678f880e6f61f72e7;hp=ea99579f16468b070cef861765dc1dbf509cc21c;hpb=886fe1a50077d9dc9c4c36f938fc7c86317cb149;p=controller.git diff --git a/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java b/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java index ea99579f16..c20c6f9182 100644 --- a/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java +++ b/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/ConfigPusherFeatureActivator.java @@ -19,14 +19,14 @@ public class ConfigPusherFeatureActivator implements BundleActivator { ConfigPusherCustomizer cpc = null; ServiceTracker cpst = null; - public void start(BundleContext context) throws Exception { + public void start(final BundleContext context) throws Exception { bc = context; cpc = new ConfigPusherCustomizer(); - cpst = new ServiceTracker(bc, ConfigPusher.class.getName(), cpc); + cpst = new ServiceTracker<>(bc, ConfigPusher.class.getName(), cpc); cpst.open(); } - public void stop(BundleContext context) throws Exception { + public void stop(final BundleContext context) throws Exception { if(cpst != null) { cpst.close(); cpst = null;