Pierre Villard created NIFI-14992:
-------------------------------------

             Summary: Remove deprecated PMD rule UselessOperationOnImmutable
                 Key: NIFI-14992
                 URL: https://issues.apache.org/jira/browse/NIFI-14992
             Project: Apache NiFi
          Issue Type: Task
            Reporter: Pierre Villard
            Assignee: Pierre Villard


https://pmd.github.io/pmd/pmd_rules_java_errorprone.html#uselessoperationonimmutable

{code:java}
[WARNING] Warning at 
/Users/pvillard/dev/github/nifi/nifi-commons/nifi-web-client-api/target/pmd/rulesets/001-pmd-ruleset.xml:101:5
  99|     <rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
 100|     <rule 
ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
 101|     <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" 
/>
          ^^^^^ Discontinue using Rule name 
category/java/errorprone.xml/UselessOperationOnImmutable as it is scheduled for 
removal from PMD. PMD 8.0.0 will remove support for this Rule. 102| 
 103|     <rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
[WARNING] Warning at 
/Users/pvillard/dev/github/nifi/nifi-commons/nifi-web-client-api/target/pmd/rulesets/001-pmd-ruleset.xml:101:5
  99|     <rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
 100|     <rule 
ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
 101|     <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" 
/>
          ^^^^^ Discontinue using Rule name 
category/java/errorprone.xml/UselessOperationOnImmutable as it is scheduled for 
removal from PMD. PMD 8.0.0 will remove support for this Rule. 102| 
 103|     <rule ref="category/java/multithreading.xml/AvoidThreadGroup" /> 
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to