A RetroSearch Logo

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

Search Query:

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

[doc] Incorrect code example for DoubleBraceInitialization in documentation on website · Issue #1898 · pmd/pmd · GitHub

Affects PMD Version: 6.16.0

Rule: DoubleBraceInitialization

Description:
See https://pmd.github.io/pmd-6.16.0/pmd_rules_java_bestpractices.html#doublebraceinitialization.

The following code example is listed as an example for double-brace initialization:
return new ArrayList<String>();
It looks like the part within the double braces has been excluded, since it does appear in the original XML...

On a related note, there is a lot of unnecessary indentation.

Code Sample demonstrating the issue: N/A

Running PMD through: N/A


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