Skip to content
Snippets Groups Projects
Commit 2dcc0515 authored by jez04's avatar jez04
Browse files

fix: log param

parent 22228c24
No related merge requests found
......@@ -41,7 +41,7 @@ public class CopyTests {
} else if (sourceDir == null) {
sourceDir = arg;
} else {
log.log(Level.WARNING, "Uknown argument '{}'.", arg);
log.log(Level.WARNING, () -> String.format("Uknown argument '%s'.", arg));
}
}
if (destProjectDir == null) {
......
......@@ -51,7 +51,7 @@ public class Download {
} else if (destPath == null) {
destPath = arg;
} else {
log.log(Level.WARNING, "Uknown argument '{}'.", arg);
log.log(Level.WARNING, () -> String.format("Uknown argument '%s'.", arg));
}
}
if (url != null && destPath != null) {
......
......@@ -358,7 +358,7 @@ public class FixDirStructure {
.compile("/project/dependencies/dependency/artifactId[text() = '" + artifactId + "']")
.evaluate(doc, XPathConstants.NODE);
if (libNode == null) {
log.log(Level.INFO, "Inserting lib '{0}' into pom.xml", artifactId);
log.log(Level.INFO, () -> String.format("Inserting lib '%s' into pom.xml", artifactId));
Node dependency = doc.createElement("dependency");
dependency
.appendChild(doc.createElement("groupId").appendChild(doc.createTextNode(groupId)).getParentNode());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment