Fix spotbugs logging complaints 80/81280/7
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Mar 2019 22:35:21 +0000 (23:35 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Apr 2019 23:00:43 +0000 (01:00 +0200)
Logging empty or sign-only messages, as well squashing exceptions
draws complaints from newer SpotBugs, fix them up.

Change-Id: I33e9e23c2c347f269517d293b99c1a80ef37f5d6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
32 files changed:
applications/bulk-o-matic/src/main/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowReader.java
applications/bulk-o-matic/src/main/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/FlowWriterDirectOFRpc.java
applications/bulk-o-matic/src/main/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/SalBulkFlowServiceImpl.java
applications/bulk-o-matic/src/main/java/org/opendaylight/openflowplugin/applications/bulk/o/matic/TableWriter.java
applications/device-ownership-service/src/main/java/org/opendaylight/openflowplugin/applications/deviceownershipservice/impl/DeviceOwnershipServiceImpl.java
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowForwarder.java
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowNodeReconciliationImpl.java
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/GroupForwarder.java
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/MeterForwarder.java
applications/forwardingrules-sync/src/main/java/org/opendaylight/openflowplugin/applications/frsync/impl/SimplifiedOperationalListener.java
applications/lldp-speaker/src/main/java/org/opendaylight/openflowplugin/applications/lldpspeaker/NodeConnectorInventoryEventTranslator.java
applications/of-switch-config-pusher/src/main/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusher.java
applications/topology-lldp-discovery/src/main/java/org/opendaylight/openflowplugin/applications/topology/lldp/utils/LLDPDiscoveryUtils.java
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/BitBufferHelper.java
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/NetUtils.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntry.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/RoleService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerExperimenterMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/multilayer/MultiLayerTableMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerExperimenterMultipartService.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/singlelayer/SingleLayerTableMultipartService.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/CallableClient.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/ListeningSimpleClient.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/ScenarioHandler.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/SimpleClient.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/SleepEvent.java
samples/simple-client/src/main/java/org/opendaylight/openflowjava/protocol/impl/clients/UdpSimpleClient.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowPluginBulkTransactionProvider.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginStatsTestCommandProvider.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestCommandProvider.java
test-provider/src/main/java/org/opendaylight/openflowplugin/test/OpenflowpluginTestTopologyNotification.java

index edf3dded44e69df8f75934bc85b7e353adbbcd4a..77d7816413a3c6b97faf7383dd3d391e0d139ae5 100644 (file)
@@ -99,7 +99,7 @@ public final class FlowReader implements Runnable, FlowCounterMBean {
                     }
                 } catch (InterruptedException | ExecutionException e) {
                     readOpStatus.set(FlowCounter.OperationStatus.FAILURE.status());
-                    LOG.error("Error {}", e);
+                    LOG.error("Error", e);
                 }
             }
         }
index dba068981b25eef6318692b8e18e52ca995f28cc..46ca0b02cfacc36a112ddfcd3b8c72c578390e63 100644 (file)
@@ -93,7 +93,7 @@ public class FlowWriterDirectOFRpc {
                 return Collections.emptySet();
             }
         } catch (InterruptedException | ExecutionException e) {
-            LOG.error("Failed to read connected nodes {}", e);
+            LOG.error("Failed to read connected nodes", e);
         }
         return nodeIds;
     }
index 7b44a53d15b228f9934d755aecf7c8ede7c5d23b..de20636798bbb261cefc354444167bd3ddd8736b 100644 (file)
@@ -216,7 +216,7 @@ public class SalBulkFlowServiceImpl implements SalBulkFlowService {
         } catch (MalformedObjectNameException | InstanceAlreadyExistsException | MBeanRegistrationException
                 | NotCompliantMBeanException e) {
             rpcResultBuilder = RpcResultBuilder.failed();
-            LOG.warn("Exception occurred: {} ", e);
+            LOG.warn("Exception occurred", e);
         }
         return Futures.immediateFuture(rpcResultBuilder.build());
     }
index 18e34a892c322deecef440dc625d6a6ee364aa26..30d2d6ff33e069f2f49d244294dbad741c07bfb0 100644 (file)
@@ -112,7 +112,7 @@ public class TableWriter implements FlowCounterMBean {
 
                         @Override
                         public void onFailure(Throwable throwable) {
-                            LOG.error("Table addition Failed. Error: {}", throwable);
+                            LOG.error("Table addition Failed.", throwable);
                             if (failedWrites.incrementAndGet() == totalTables) {
                                 writeOpStatus.set(FlowCounter.OperationStatus.FAILURE.status());
                             }
index c011a45a1ad6eb4fcaf08226367668ca59d846e6..fcde56208006085f71ce4b5fa2aa89fd45b502a8 100644 (file)
@@ -55,7 +55,7 @@ public class DeviceOwnershipServiceImpl implements DeviceOwnershipService, Entit
     public boolean isEntityOwned(final String nodeId) {
         EntityOwnershipState state = ownershipStateCache.get(nodeId);
         if (state == null) {
-            LOG.debug("The ownership state for node {} is not cached. Retrieving from the EOS Datastore");
+            LOG.debug("The ownership state for node {} is not cached. Retrieving from the EOS Datastore", nodeId);
             Optional<EntityOwnershipState> status = getCurrentOwnershipStatus(nodeId);
             if (status.isPresent()) {
                 state = status.get();
index 170fa5551c94e6e7066ce6e37d95e0d5d88f82c1..d36b446547089261edd3cefea46aefdf63a09cdc 100644 (file)
@@ -318,7 +318,7 @@ public class FlowForwarder extends AbstractListeningCommiter<Flow> {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Stale Flow creation failed {}", throwable);
+                LOG.error("Stale Flow creation failed", throwable);
             }
         }, MoreExecutors.directExecutor());
 
index 9366b2c58e7a0d105aca5a986447636d5a3b08f8..75eecebb7d322ecde880a934add58a67440e0726 100644 (file)
@@ -692,7 +692,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.debug("Stale entity removal failed {}", throwable);
+                LOG.debug("Stale entity removal failed", throwable);
             }
         }, MoreExecutors.directExecutor());
     }
index e2ec86f67badea0399505d99ee6d994fe6f07b82..a2bf180ff907c5c4ac1e052936104191637a5595 100644 (file)
@@ -229,7 +229,7 @@ public class GroupForwarder extends AbstractListeningCommiter<Group> {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Stale Group creation failed {}", throwable);
+                LOG.error("Stale Group creation failed", throwable);
             }
         }, MoreExecutors.directExecutor());
 
index f4675947ca4ac1f961618f699112f712e7e5c898..62c80a2fd697d216c39fc840e140ece8db5f6dd3 100644 (file)
@@ -180,7 +180,7 @@ public class MeterForwarder extends AbstractListeningCommiter<Meter> {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Stale Meter creation failed {}", throwable);
+                LOG.error("Stale Meter creation failed", throwable);
             }
         }, MoreExecutors.directExecutor());
     }
index 18d38203ed79e67ee5309b0e4f8ba06d6fa52333..2fd114d6865f3ce6b8fe87cb8771c5869999522b 100644 (file)
@@ -203,7 +203,7 @@ public class SimplifiedOperationalListener extends AbstractFrmSyncListener<Node>
                 return true;
             }
         } catch (ParseException e) {
-            LOG.warn("Timestamp parsing error {}", e);
+            LOG.warn("Timestamp parsing error", e);
         }
         LOG.debug("Fresh operational not present: {}", nodeId.getValue());
         return false;
index 0e5c97f4a61e49ce70185b527422a8a8e3f6e7be..dd0244e83c557acd7e5a0a45b7ad83a555be9483 100644 (file)
@@ -76,7 +76,7 @@ public class NodeConnectorInventoryEventTranslator<T extends DataObject>
                     dataBroker.registerDataTreeChangeListener(dtiToNodeConnectorState,
                             NodeConnectorInventoryEventTranslator.this));
         } catch (Exception e) {
-            LOG.error("DataTreeChangeListeners registration failed: {}", e);
+            LOG.error("DataTreeChangeListeners registration failed", e);
             throw new IllegalStateException("NodeConnectorInventoryEventTranslator startup failed!", e);
         }
         LOG.info("NodeConnectorInventoryEventTranslator has started.");
index 93ef7e82f4d76cce1d556fc388c763c0707bdee8..d8f2d94cdad73cdb2ca06718e53130199d404f72 100644 (file)
@@ -72,7 +72,7 @@ public class DefaultConfigPusher implements AutoCloseable, ClusteredDataTreeChan
             listenerRegistration = looper.loopUntilNoException(
                 () -> dataBroker.registerDataTreeChangeListener(identifier, DefaultConfigPusher.this));
         } catch (Exception e) {
-            LOG.error("DataTreeChangeListener registration failed: {}", e);
+            LOG.error("DataTreeChangeListener registration failed", e);
             throw new IllegalStateException("DefaultConfigPusher startup failed!", e);
         }
         LOG.info("DefaultConfigPusher has started.");
index 39d83427d4d9e2426417815cf19def8161c9708b..5681e18ceaf6acce49301403d8638f98457ce8c6 100644 (file)
@@ -89,7 +89,7 @@ public final class LLDPDiscoveryUtils {
             try {
                 ethPkt.deserialize(payload, 0, payload.length * NetUtils.NUM_BITS_IN_A_BYTE);
             } catch (PacketException e) {
-                LOG.warn("Failed to decode LLDP packet {}", e);
+                LOG.warn("Failed to decode LLDP packet", e);
                 return nodeConnectorRef;
             }
 
index b31f6803f37adb40e9e3dbd767c44b50f8f93aab..7522b4ed637c2359a891cf59e464a9d196f9ed1a 100644 (file)
@@ -131,11 +131,7 @@ public abstract class BitBufferHelper {
             LOG.error("getLong", new BufferException("Container is too small for the number of requested bits"));
         }
         if (numBits > data.length * NetUtils.NUM_BITS_IN_A_BYTE) {
-            try {
-                throw new BufferException("Trying to read more bits than contained in the data buffer");
-            } catch (final BufferException e) {
-                LOG.error("", e);
-            }
+            LOG.error("getLong", new BufferException("Trying to read more bits than contained in the data buffer"));
         }
         int startOffset = data.length * NetUtils.NUM_BITS_IN_A_BYTE - numBits;
         try {
index 1aa1163f8faca52fa50600ffb90cecf1d7fc6602..de962334d2fd6f4c5a831a47f6f2796ec864200f 100644 (file)
@@ -123,7 +123,7 @@ public abstract class NetUtils {
         try {
             ip = InetAddress.getByAddress(NetUtils.intToByteArray4(address));
         } catch (final UnknownHostException e) {
-            LOG.error("", e);
+            LOG.error("Failed to convert {}", address, e);
         }
         return ip;
     }
@@ -163,7 +163,7 @@ public abstract class NetUtils {
         try {
             return InetAddress.getByAddress(address);
         } catch (final UnknownHostException e) {
-            LOG.error("", e);
+            LOG.error("Failed to convert {}", address, e);
         }
         return null;
     }
@@ -368,7 +368,7 @@ public abstract class NetUtils {
         try {
             address = InetAddress.getByName(addressString);
         } catch (final UnknownHostException e) {
-            LOG.error("", e);
+            LOG.error("Failed to convert {}", addressString, e);
         }
         return address;
     }
index 9ef81e853a444503c0801f76edfe8d1072aca4de..4739ba8344375b084b7844209d1217138fc2988e 100644 (file)
@@ -130,7 +130,7 @@ final class OutboundQueueEntry {
                 callback = null;
             }
         } else {
-            LOG.warn("Ignoring failure {} for completed message", cause);
+            LOG.warn("Ignoring failure for completed message", cause);
         }
     }
 
index 0fd92a7c0de2f511f5b4ff65400d1871c472b769..e3e6cbf98bfc1942016e1e130906f21047abaf0a 100644 (file)
@@ -355,7 +355,7 @@ public class OpenFlowPluginProviderImpl implements
                 | NotCompliantMBeanException
                 | MBeanRegistrationException
                 | InstanceAlreadyExistsException e) {
-            LOG.warn("Error registering MBean {}", e);
+            LOG.warn("Error registering MBean {}", beanName, e);
         }
     }
 
@@ -367,7 +367,7 @@ public class OpenFlowPluginProviderImpl implements
         } catch (InstanceNotFoundException
                 | MBeanRegistrationException
                 | MalformedObjectNameException e) {
-            LOG.warn("Error unregistering MBean {}", e);
+            LOG.warn("Error unregistering MBean {}", beanName, e);
         }
     }
 }
index c00735ca07728caeca8e855c81f83c351b2f2b34..d2e0a4b865679a543f54064c51679dedb0a88df2 100644 (file)
@@ -90,7 +90,7 @@ public class RoleService extends AbstractSimpleService<RoleRequestInputBuilder,
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.info("onFailure - getGenerationIdFromDevice RPC error {}", throwable);
+                LOG.info("onFailure - getGenerationIdFromDevice RPC error", throwable);
                 finalFuture.setException(new ExecutionException(throwable));
             }
         }, MoreExecutors.directExecutor());
index e32d518d5830823a633010bdf92cb98aca27448d..29ca98b67bfb2fa3254bcfcadc1f3197f6229d2e 100644 (file)
@@ -152,7 +152,7 @@ public class MultiLayerExperimenterMultipartService extends AbstractExperimenter
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.warn("Failure multipart response for Experimenter-Mp request. Exception: {}", throwable);
+                LOG.warn("Failure multipart response for Experimenter-Mp request", throwable);
                 finalFuture.set(RpcResultBuilder.<SendExperimenterMpRequestOutput>failed()
                         .withError(ErrorType.RPC, "Future error", throwable).build());
             }
index 2d0cd7a5b6ff350f09976a732346b0b8d30edc31..5c12ccfcf6b266a4e779e27a43672721731210e7 100644 (file)
@@ -119,7 +119,7 @@ public class MultiLayerTableMultipartService extends AbstractTableMultipartServi
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.error("Failure multipart response for table features request. Exception: {}", throwable);
+                LOG.error("Failure multipart response for table features request", throwable);
                 finalFuture.set(RpcResultBuilder.<UpdateTableOutput>failed()
                     .withError(ErrorType.RPC, "Future error", throwable).build());
             }
index 087e1a1a944273b1914dfc6695a098eab0466167..aa46070b94016567e8e308d622c98ad933f7ce15 100644 (file)
@@ -87,7 +87,7 @@ public class SingleLayerExperimenterMultipartService extends AbstractExperimente
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.warn("Failure multipart response for Experimenter-Mp request. Exception: {}", throwable);
+                LOG.warn("Failure multipart response for Experimenter-Mp request", throwable);
                 future.set(RpcResultBuilder.<SendExperimenterMpRequestOutput>failed()
                         .withError(ErrorType.RPC, "Future error", throwable).build());
             }
index 38704adbd343403d4340e2aa489a0fb3384ae50c..a79cf1c837060494504781e29b8a2216ed541133 100644 (file)
@@ -104,7 +104,7 @@ public class SingleLayerTableMultipartService extends AbstractTableMultipartServ
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Failure multipart response for table features request. Exception: {}", throwable);
+                LOG.error("Failure multipart response for table features request", throwable);
                 finalFuture.set(RpcResultBuilder.<UpdateTableOutput>failed()
                     .withError(ErrorType.RPC, "Future error", throwable).build());
             }
index 836344f558a299720f1fd2e03626efa529a0ff7a..9242908aebb116715ea488a5679860165c53a271 100644 (file)
@@ -100,7 +100,7 @@ public class CallableClient implements Callable<Boolean>, OFClient {
                 }
             }
         } catch (RuntimeException ex) {
-            LOG.error("Error {}", ex);
+            LOG.error("Error", ex);
             return false;
         }
         if (scenarioHandler.isFinishedOK()) {
index 7eba2f845d52094a7b43ad8deb2e603fe368d424..ee28a426e16d782529ebfd8a44fc0bfeab8c23dc 100644 (file)
@@ -76,7 +76,7 @@ public class ListeningSimpleClient implements OFClient {
                 }
             }
         } catch (InterruptedException ex) {
-            LOG.error("Error {}", ex);
+            LOG.error("Error", ex);
         } finally {
             LOG.debug("listening client shutting down");
             try {
@@ -84,7 +84,7 @@ public class ListeningSimpleClient implements OFClient {
                 bossGroup.shutdownGracefully().get();
                 LOG.debug("listening client shutdown succesful");
             } catch (InterruptedException | ExecutionException e) {
-                LOG.error("Error {}", e);
+                LOG.error("Error", e);
             }
         }
         scenarioDone.set(true);
index cae78d5d0eb62001e07c6c0dd21f07df8a43303d..f5e7b1f53c19521f7aa61d038c9fdd9bce068739 100644 (file)
@@ -62,7 +62,7 @@ public class ScenarioHandler extends Thread {
                     WaitForMessageEvent event = (WaitForMessageEvent) peek;
                     event.setHeaderReceived(ofMsg.poll(2000, TimeUnit.MILLISECONDS));
                 } catch (InterruptedException e) {
-                    LOG.error("Error {}", e);
+                    LOG.error("Error", e);
                     break;
                 }
             } else if (peek instanceof SendEvent) {
@@ -88,7 +88,7 @@ public class ScenarioHandler extends Thread {
             try {
                 sleep(sleepBetweenTries);
             } catch (InterruptedException e) {
-                LOG.error("Error {}", e);
+                LOG.error("Error", e);
             }
         }
         LOG.debug("Scenario finished");
index 3564ea35488b33af7b09e7307813cba7797b539e..475b86a5179427d4a7c3b305e1fcfed0734bd5c4 100644 (file)
@@ -75,14 +75,14 @@ public class SimpleClient implements OFClient {
                 }
             }
         } catch (InterruptedException ex) {
-            LOG.error("Error {}", ex);
+            LOG.error("Error", ex);
         } finally {
             LOG.debug("shutting down");
             try {
                 group.shutdownGracefully().get();
                 LOG.debug("shutdown succesful");
             } catch (InterruptedException | ExecutionException e) {
-                LOG.error("Error {}", e);
+                LOG.error("Error", e);
             }
         }
         scenarioDone.set(true);
index 55dd0054eeef81d77283f422537c8484fd032e73..9c14d538040d5fadc815fcc9a71d51deb98cdb56 100644 (file)
@@ -37,7 +37,7 @@ public class SleepEvent implements ClientEvent {
             LOG.debug("Sleeping");
             return true;
         } catch (InterruptedException e) {
-            LOG.error("Error {}", e);
+            LOG.error("Error", e);
         }
         return false;
     }
index 4438ba84f9f2e4e29f1e36dbf93150e60f6c670c..db6917112ab8052df766469484f87c1480d07609 100644 (file)
@@ -76,14 +76,14 @@ public class UdpSimpleClient implements OFClient {
                 }
             }
         } catch (InterruptedException ex) {
-            LOG.error("Error {}", ex);
+            LOG.error("Error", ex);
         } finally {
             LOG.debug("shutting down");
             try {
                 group.shutdownGracefully().get();
                 LOG.debug("shutdown succesful");
             } catch (InterruptedException | ExecutionException e) {
-                LOG.error("Error {}", e);
+                LOG.error("Error", e);
             }
         }
         scenarioDone.set(true);
index a9330892092f06c5f659e32d5518b0076c71d736..6c2c130012bc36e648837cb3a82fdd811b819552 100644 (file)
@@ -655,7 +655,7 @@ public class OpenflowPluginBulkTransactionProvider implements CommandProvider {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Status of Group Data Loaded Transaction : failure. Reason : {}", throwable);
+                LOG.error("Status of Group Data Loaded Transaction : failure.", throwable);
                 ci.println(String.format("Status of Group Data Loaded Transaction : failure. Reason : %s", throwable));
             }
         }, MoreExecutors.directExecutor());
@@ -711,7 +711,7 @@ public class OpenflowPluginBulkTransactionProvider implements CommandProvider {
 
             @Override
             public void onFailure(Throwable throwable) {
-                LOG.error("Status of Group Data Loaded Transaction : failure. Reason : {}", throwable);
+                LOG.error("Status of Group Data Loaded Transaction : failure.", throwable);
                 ci.println(String.format("Status of Group Data Loaded Transaction : failure. Reason : %s", throwable));
             }
         }, MoreExecutors.directExecutor());
index b0d70dc3e9affa3182f739c916e51b1f0628cc36..3c04d436f252ad47f756f94c300f602d7f3076d7 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.openflowplugin.test;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.util.List;
 import org.eclipse.osgi.framework.console.CommandInterpreter;
 import org.eclipse.osgi.framework.console.CommandProvider;
@@ -142,6 +143,7 @@ public class OpenflowpluginStatsTestCommandProvider implements CommandProvider {
 
     }
 
+    @SuppressFBWarnings("SLF4J_SIGN_ONLY_FORMAT")
     public void _flowStats(CommandInterpreter ci) {
         int flowCount = 0;
         int flowStatsCount = 0;
index 838e1e999bf763212cb5bf002aabcbf4f58ff8c9..c36ed44ced254beed981d47ae5dd468ffdc4b663 100644 (file)
@@ -3156,7 +3156,7 @@ public class OpenflowpluginTestCommandProvider implements CommandProvider {
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.error("Status of Group Data Loaded Transaction : failure. Reason : {}", throwable);
+                LOG.error("Status of Group Data Loaded Transaction : failure.", throwable);
                 ci.println(String.format("Status of Group Data Loaded Transaction : failure. Reason : %s", throwable));
             }
         }, MoreExecutors.directExecutor());
@@ -3195,7 +3195,7 @@ public class OpenflowpluginTestCommandProvider implements CommandProvider {
 
             @Override
             public void onFailure(final Throwable throwable) {
-                LOG.error("Status of Group Data Loaded Transaction : failure. Reason : {}", throwable);
+                LOG.error("Status of Group Data Loaded Transaction : failure.", throwable);
                 ci.println(String.format("Status of Group Data Loaded Transaction : failure. Reason : %s", throwable));
             }
         }, MoreExecutors.directExecutor());
index 8760cb05a602bbe65e1a0be455c6e10417f035e6..405262a2b234421c75f76ad19de2f5b9fb001e8c 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.openflowplugin.test;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import org.opendaylight.mdsal.binding.api.NotificationService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.FlowTopologyDiscoveryListener;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.LinkDiscovered;
@@ -34,6 +35,7 @@ public class OpenflowpluginTestTopologyNotification {
 
     private static final class TopologyEventListener implements FlowTopologyDiscoveryListener {
         @Override
+        @SuppressFBWarnings("SLF4J_SIGN_ONLY_FORMAT")
         public void onLinkDiscovered(LinkDiscovered notification) {
             LOG.debug("-------------------------------------------");
             LOG.debug("LinkDiscovered notification ........");
@@ -41,6 +43,7 @@ public class OpenflowpluginTestTopologyNotification {
         }
 
         @Override
+        @SuppressFBWarnings("SLF4J_SIGN_ONLY_FORMAT")
         public void onLinkOverutilized(LinkOverutilized notification) {
             LOG.debug("-------------------------------------------");
             LOG.debug("LinkOverutilized notification ........");
@@ -48,6 +51,7 @@ public class OpenflowpluginTestTopologyNotification {
         }
 
         @Override
+        @SuppressFBWarnings("SLF4J_SIGN_ONLY_FORMAT")
         public void onLinkRemoved(LinkRemoved notification) {
             LOG.debug("-------------------------------------------");
             LOG.debug("LinkRemoved notification   ........");
@@ -55,6 +59,7 @@ public class OpenflowpluginTestTopologyNotification {
         }
 
         @Override
+        @SuppressFBWarnings("SLF4J_SIGN_ONLY_FORMAT")
         public void onLinkUtilizationNormal(LinkUtilizationNormal notification) {
             LOG.debug("-------------------------------------------");
             LOG.debug("LinkUtilizationNormal notification ........");