This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch bug in repository https://gitbox.apache.org/repos/asf/maven-jmod-plugin.git
commit 78f1b0700d1f294203c27c3ceb3694559d12bef2 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Mon Dec 22 06:36:16 2025 -0500 Fix logic --- src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java index c716388..5586591 100644 --- a/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java +++ b/src/main/java/org/apache/maven/plugins/jmod/JModCreateMojo.java @@ -345,7 +345,7 @@ public class JModCreateMojo extends AbstractJModMojo { private void failIfParametersAreNotInTheirValidValueRanges() throws MojoFailureException { if (warnIfResolved != null) { String x = warnIfResolved.toLowerCase().trim(); - if (!"deprecated".equals(x) && "deprecated-for-removal".equals(x) && "incubating".equals(x)) { + if (!"deprecated".equals(x) && !"deprecated-for-removal".equals(x) && !"incubating".equals(x)) { String message = "The parameter warnIfResolved does not contain a valid value. " + "Valid values are 'deprecated', 'deprecated-for-removal' or 'incubating'."; getLog().error(message);
