A RetroSearch Logo

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

Search Query:

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

false' case · Issue #3603 · pmd/pmd · GitHub

Affects PMD Version: 6.40.0

Rule: SimplifiedTernary

Description: There is no violation if both of ternary returns are boolean.

Code Sample demonstrating the issue:

return condition ? true : false;

Expected outcome:

PMD should report a violation at line 1, but doesn't. This is a false-negative.

Running PMD through: Maven | PMD Rule Designer


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