[
https://issues.apache.org/jira/browse/OFBIZ-11828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pawan Verma updated OFBIZ-11828:
--------------------------------
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.
{code:java}
Map<String,List<String>> map = new HashMap<String,List<String>>();
{code}
Replace with
{code:java}
Map<String,List<String>> map = new HashMap<>();
{code}
was:
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.
{{}}
{code:java}
Map<String,List<String>> map = new HashMap<String,List<String>>();
{code}
Replace with
{code:java}
Map<String,List<String>> map = new HashMap<>();
{code}
> Replace explicit type argument with diamond operator
> ----------------------------------------------------
>
> Key: OFBIZ-11828
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11828> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Pawan Verma
> Assignee: Pawan Verma
> Priority: Minor
>
> 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.
>
> {code:java}
> Map<String,List<String>> map = new HashMap<String,List<String>>();
> {code}
> Replace with
> {code:java}
> Map<String,List<String>> map = new HashMap<>();
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)