A RetroSearch Logo

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

Search Query:

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

allow excluding the variable in a for-each loop · Issue #1513 · pmd/pmd · GitHub

Currently LocalVariableCouldBeFinal also triggers on the non-final variable in a for-each loop:

for ( String c : strings ) {
    System.out.println(c);
}

It should be possible to exclude for-each loop variables as they might be treated differently from regular local variables.


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