olamy commented on code in PR #337: URL: https://github.com/apache/maven-javadoc-plugin/pull/337#discussion_r1845727649
########## src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java: ########## @@ -221,14 +221,17 @@ protected static List<String> getExcludedPackages( * @return quoted option-argument */ protected static String quotedArgument(String value) { + if (value == null) { + return null; + } String arg = value; + List<String> list = Arrays.stream(arg.split("\n")).map(String::trim).collect(Collectors.toList()); + arg = String.join("", list); Review Comment: > try to avoid reusing variables as it's bug prone > yup please look at the context of the code (the full code) yes it's not idea but it;s how the rest of the code is and I don't want to change everything this could be part of another PR if you like. > Also, this is combining lines with no space in between one line and the next. Is that what you want? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org