Remove unneded artifact.toString() 81/79481/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Jan 2019 18:21:03 +0000 (19:21 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Jan 2019 19:56:32 +0000 (20:56 +0100)
Logger will call toString() if needed, remove the explicit call.

Change-Id: I169e98bc7a04390f56503666782ac1bdb7413b61
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
karaf-plugin/src/main/java/org/opendaylight/odlparent/PopulateLocalRepoMojo.java

index 5159cf41623afca2aff2fd26fccb2650468efb15..eebf3d040d6066bc17f5eb4a14cde56b58933d75 100644 (file)
@@ -126,7 +126,7 @@ public class PopulateLocalRepoMojo extends AbstractMojo {
 
             Map<Gace, String> gaceVersions = new HashMap<>();
             for (Artifact artifact : artifacts) {
-                LOG.debug("Artifact to be installed: {}", artifact.toString());
+                LOG.debug("Artifact to be installed: {}", artifact);
                 Gace gace = new Gace(artifact);
                 String duplicate = gaceVersions.putIfAbsent(gace, artifact.getVersion());
                 if (duplicate != null && !duplicate.equals(artifact.getVersion())) {