Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
Trunk
-
None
-
None
Description
Since Java 1.7, when defining generic types it is unnecessary to redefine those types in the constructor when it is already done in the declared type.
Map<String,List<String>> map = new HashMap<String,List<String>>();
Replace with
Map<String,List<String>> map = new HashMap<>();