Bukama commented on code in PR #987:
URL:
https://github.com/apache/maven-compiler-plugin/pull/987#discussion_r2468535019
##########
src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java:
##########
@@ -1451,13 +1458,37 @@ private boolean isVersionEqualOrNewer(String
sourceVersion) {
return supportedVersion.compareTo(requested) >= 0;
}
+ /**
+ * Returns whether the given collection is null or empty, ignoring spaces.
+ * This is a convenience for a frequent check, and also for clarity.
+ */
+ private static boolean isNullOrEmpty(String c) {
Review Comment:
Thanks. I think itโs better to use such like isAbsent here to avoid the
confusion ๐
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]