A RetroSearch Logo

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

Search Query:

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

UseDiamondOperator · Issue #1517 · pmd/pmd · GitHub

In pmd-build-tools, we have a rule, that searches for unnecessary generic arguments, e.g.

List<String> myList = new ArrayList<String>();

//this can be written as
List<String> myList = newArrayList<>();

See:
https://github.com/pmd/build-tools/blob/e2cda582cb5e685855ecce02fb4f941f6bb2a851/src/main/resources/net/sourceforge/pmd/pmd-dogfood-config.xml#L603-L627

Proposed category: codestyle

What needs to be done here:


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