[
https://issues.apache.org/jira/browse/NIFI-16342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116038#comment-18116038
]
ASF subversion and git services commented on NIFI-16342:
--------------------------------------------------------
Commit 3699de43ded1abf7039738af61cdcb7f86fd8487 in nifi's branch
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3699de43ded ]
NIFI-16342 Replaced deprecated PMD rule CheckSkipResult with suggested rule
UnusedReturnValue. (#11681)
> Replace deprecated PMD rule CheckSkipResult with suggested rule
> UnusedReturnValue
> ---------------------------------------------------------------------------------
>
> Key: NIFI-16342
> URL: https://issues.apache.org/jira/browse/NIFI-16342
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Since the upgrade from PMD from 7.26.0 to 7.27.0 in NIFI-16306, the build has
> been outputting the following warning message:
> {code:java}
> [WARNING] Warning /target/pmd/rulesets/001-pmd-ruleset.xml:92:5
> 90| <rule ref="category/java/errorprone.xml/AvoidUsingOctalValues" />
> 91| <rule ref="category/java/errorprone.xml/BrokenNullCheck" />
> 92| <rule ref="category/java/errorprone.xml/CheckSkipResult" />
> ^^^^^ Discontinue using Rule name
> category/java/errorprone.xml/CheckSkipResult as it is scheduled for removal
> from PMD. PMD 8.0.0 will remove support for this Rule.
> {code}
> Per the PMD 7.27.0 [release
> notes|https://github.com/pmd/pmd/releases/tag/pmd_releases%2F7.27.0] , the
> rule UnusedReturnValue should be used instead of the CheckSkipResult rule.
> The goal of this ticket is to remove the CheckSkipResult rule, replace it
> with the UnusedReturnValue rule and fix any places in the code which violate
> this rule.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)