Fixed output message format when includelineNumber is false

This commit is contained in:
Erik C. Thauvin 2024-06-07 15:57:10 -07:00
parent b6df5df894
commit 884fe381dd
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -430,7 +430,7 @@ public class PmdOperation extends AbstractOperation<PmdOperation> {
if (includeLineNumber_) { if (includeLineNumber_) {
msg = "[{0}] {1}:{2}\n\t{3} ({4})\n\t\t--> {5}"; msg = "[{0}] {1}:{2}\n\t{3} ({4})\n\t\t--> {5}";
} else { } else {
msg = "\"[{0}] {1} (line: {2})\\n\\t{3} ({4})\\n\\t\\t--> {5}\""; msg = "[{0}] {1} (line: {2})\n\t{3} ({4})\n\t\t--> {5}";
} }
LOGGER.log(Level.WARNING, msg, LOGGER.log(Level.WARNING, msg,
new Object[]{commandName, new Object[]{commandName,