A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1285 below:

[java] False positive "UselessParentheses" for parentheses that contain assignment · Issue #1285 · pmd/pmd · GitHub

Affects PMD Version: PMD 6.5.0, ran through maven-pmd-plugin 3.10.0.

Rule: UselessParentheses (category/java/codestyle.xml/UselessParentheses)

Description: This detector does not detect the value of the extra parentheses to ensure that the right result is assigned to the in-line assignment.

Code Sample demonstrating the issue:

Matcher matcher;
if ((matcher = PATTERN_V4.matcher(message)).matches()) {
    ...
}

Running PMD through: Maven


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4