FRS - sonar issues and repackage
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / impl / SyncReactorFutureDecorator.java
index 9907d605d4617b753601a65cb8625c1f99716d18..ba3a1d8c59e9d858a8c85b78f70b047ecb9c3226 100644 (file)
@@ -41,7 +41,7 @@ public class SyncReactorFutureDecorator implements SyncReactor {
         final NodeId nodeId = PathUtil.digNodeId(flowcapableNodePath);
         LOG.trace("syncup future decorator: {}", nodeId.getValue());
 
-        final ListenableFuture<Boolean> syncup = executorService.submit(() -> {
+        return executorService.submit(() -> {
             final String oldThreadName = updateThreadName(nodeId);
 
             try {
@@ -56,8 +56,6 @@ public class SyncReactorFutureDecorator implements SyncReactor {
                 updateThreadName(oldThreadName);
             }
         });
-
-        return syncup;
     }
 
     protected ListenableFuture<Boolean> doSyncupInFuture(final InstanceIdentifier<FlowCapableNode> flowcapableNodePath,