This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jmod-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 7382134 Fix logic (#91)
7382134 is described below
commit 7382134bac7af40b330d2e3c87c3a76bfef3ac9a
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Dec 22 17:52:56 2025 +0000
Fix logic (#91)
---
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);