desruisseaux commented on code in PR #1022:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/1022#discussion_r2777433423


##########
src/main/java/org/apache/maven/plugin/compiler/Options.java:
##########
@@ -320,13 +320,13 @@ private boolean checkNumberOfArguments(String option, int 
count, boolean immedia
         if (expected == count) {
             warning = null;
             return true;
-        } else if (expected < 1) {
+        } else if (expected == 0) {

Review Comment:
   We just need to replace `if (expected < 1)` by `if (expected < 0)`. This is 
the only correction needed (no need to change order or add another `if` 
condition).



-- 
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]

Reply via email to