config-persister-feature-adapter: use lambdas
[controller.git] / opendaylight / config / config-persister-feature-adapter / src / main / java / org / opendaylight / controller / configpusherfeature / ConfigPusherFeatureActivator.java
index ea99579f16468b070cef861765dc1dbf509cc21c..c20c6f9182caa895cd50e51ee36dab887a41c4f0 100644 (file)
@@ -19,14 +19,14 @@ public class ConfigPusherFeatureActivator implements BundleActivator {
     ConfigPusherCustomizer cpc = null;
     ServiceTracker<ConfigPusher,ConfigPusher> 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<ConfigPusher, ConfigPusher>(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;