Bump MRI upstreams
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / impl / SyncReactorGuardDecorator.java
index 2db109b29464ab93a24f37464906a85681c37e55..ebd10d89ef4f4138def2719b41302761bd32d481 100644 (file)
@@ -11,7 +11,6 @@ import com.google.common.util.concurrent.FutureCallback;
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
 import com.google.common.util.concurrent.MoreExecutors;
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.util.concurrent.Semaphore;
 import java.util.concurrent.TimeUnit;
 import org.opendaylight.openflowplugin.applications.frsync.SemaphoreKeeper;
@@ -63,7 +62,7 @@ public class SyncReactorGuardDecorator implements SyncReactor {
                                                          final long stampBeforeGuard,
                                                          final long stampAfterGuard,
                                                          final NodeId nodeId) {
-        return new FutureCallback<Boolean>() {
+        return new FutureCallback<>() {
             @Override
             public void onSuccess(final Boolean result) {
                 if (LOG.isDebugEnabled()) {
@@ -86,8 +85,6 @@ public class SyncReactorGuardDecorator implements SyncReactor {
         };
     }
 
-    @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD",
-            justification = "https://github.com/spotbugs/spotbugs/issues/811")
     private static String formatNanos(final long nanos) {
         return "'" + TimeUnit.NANOSECONDS.toMillis(nanos) + " ms'";
     }