Cleanup eclipse warnings
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / controller / config / yang / pcep / impl / PCEPDispatcherImplModule.java
index 74b26a3e1b2d5aea197a7902c3373cea8ffb686d..182caf59db62ec7c0dc0f90615e4e5311b1c5849 100644 (file)
@@ -49,18 +49,18 @@ public final class PCEPDispatcherImplModule extends AbstractPCEPDispatcherImplMo
 
         return Reflection.newProxy(AutoCloseablePCEPDispatcher.class, new AbstractInvocationHandler() {
             @Override
-            protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable {
+            protected Object handleInvocation(final Object proxy, final Method method, final Object[] args) throws Throwable {
                 if (method.getName().equals("close")) {
                     tracker.close();
                     return null;
-                } else {
-                    return method.invoke(service, args);
                 }
+
+                return method.invoke(service, args);
             }
         });
     }
 
-    void setBundleContext(BundleContext bundleContext) {
+    void setBundleContext(final BundleContext bundleContext) {
         this.bundleContext = bundleContext;
     }