You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "desruisseaux (via GitHub)" <gi...@apache.org> on 2026/02/07 11:15:00 UTC
Re: [PR] Reorder cases to avoid skipping [maven-compiler-plugin]
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org