A RetroSearch Logo

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

Search Query:

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

[java] UseDiamondOperator false positive with var initializer · Issue #1624 · pmd/pmd · GitHub

Affects PMD Version: 6.11.0

Rule: UseDiamondOperator

Description:

False positive when using "var": You cannot omit the <String> (if you want a typed array) but PMD complains.

Code Sample demonstrating the issue:

var foo = new ArrayList<String>(5);

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