Enable spotbugs in mdsal-binding-dom-codec-osgi
[mdsal.git] / binding / mdsal-binding-dom-codec-osgi / src / main / java / org / opendaylight / mdsal / binding / dom / codec / osgi / impl / ModuleInfoBundleTracker.java
index 460a10a9e325c9cce4c1d347c4cabafb00ccf0af..3933b0328bf69a5feb37634c88ca474ee4b458b8 100644 (file)
@@ -11,6 +11,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
 
 import com.google.common.collect.ImmutableList;
 import com.google.common.io.Resources;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import java.io.IOException;
 import java.net.URL;
 import java.nio.charset.StandardCharsets;
@@ -94,7 +95,7 @@ final class ModuleInfoBundleTracker implements BundleTrackerCustomizer<Collectio
             moduleInfoRegistry.updateService();
         }
 
-        LOG.trace("Bundle {} resultend in registrations {}", registrations);
+        LOG.trace("Bundle {} resultend in registrations {}", bundle, registrations);
         return registrations;
     }
 
@@ -160,6 +161,7 @@ final class ModuleInfoBundleTracker implements BundleTrackerCustomizer<Collectio
         }
     }
 
+    @SuppressFBWarnings("SLF4J_UNKNOWN_ARRAY")
     private static String logMessage(final String slfMessage, final Object... params) {
         LOG.info(slfMessage, params);
         return String.format(BRACE_PATTERN.matcher(slfMessage).replaceAll("%s"), params);