A RetroSearch Logo

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

Search Query:

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

[java] IdenticalCatchBranches false positive · Issue #1158 · pmd/pmd · GitHub

Affects PMD Version:
6.4.0

Rule:
IdenticalCatchBranches

Description:
IdenticalCatchBranches reports issue when catches are not identical

Code Sample demonstrating the issue:

            try {
                ...
            } catch (FieldNotFound e) {
                throw new IllegalStateException("field not found", e);
            } catch (FieldException | FieldConvertError e) {
                throw new IllegalArgumentException("field exception ", e); 
            }
[IdenticalCatchBranches] 'catch' branch identical to 'FieldNotFound' branch

Running PMD through:
Gradle


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