A RetroSearch Logo

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

Search Query:

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

[java] [6.3.0] PrematureDeclaration false-positive · Issue #1067 · pmd/pmd · GitHub

This is a regression from 6.2.0. We have a million of those warnings. It happens whenever a variable is used in a lambda which is in a return statement:

String foo = "";
return new ArrayList<String>().stream().anyMatch(bar -> foo.equals(bar));

Note that the following doesn't trigger the warning:

String foo = "";
return new ArrayList<String>().stream().anyMatch(foo::equals);

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