Rule: UseDiamondOperator
PMD version is 6.12.0.
This is related to another issue with the same rule.
This time I get it in a lambda:
Runnable someAction = () -> { var foo = new ArrayList<String>(5); String x = foo.get(0); System.err.println(x); };
By the way, thank you for working on PMD! It's an amazing tool!
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