[jira] [Commented] (OFBIZ-11828) Replace explicit type argument with diamond operator
[ https://issues.apache.org/jira/browse/OFBIZ-11828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147072#comment-17147072 ] ASF subversion and git services commented on OFBIZ-11828: - Commit 2e415638b2d63f8caf56ef8d31a7eb9deb382e06 in ofbiz-plugins's branch refs/heads/trunk from Pawan Verma [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=2e41563 ] Improved: Replace explicit type argument with diamond operator(OFBIZ-11828) 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. > 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 > Attachments: OFBIZ-11828-plugins.patch, OFBIZ-11828.patch > > > 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> map = new HashMap>(); > {code} > Replace with > {code:java} > Map> map = new HashMap<>(); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11828) Replace explicit type argument with diamond operator
[ https://issues.apache.org/jira/browse/OFBIZ-11828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147070#comment-17147070 ] ASF subversion and git services commented on OFBIZ-11828: - Commit e19b12eae99c47c2e21f84c3bfb1c3775df4a8eb in ofbiz-framework's branch refs/heads/trunk from Pawan Verma [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e19b12e ] Improved: Replace explicit type argument with diamond operator(OFBIZ-11828) 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. > 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 > Attachments: OFBIZ-11828-plugins.patch, OFBIZ-11828.patch > > > 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> map = new HashMap>(); > {code} > Replace with > {code:java} > Map> map = new HashMap<>(); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11828) Replace explicit type argument with diamond operator
[ https://issues.apache.org/jira/browse/OFBIZ-11828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17139281#comment-17139281 ] Pawan Verma commented on OFBIZ-11828: - Attached patches for this improvement. > 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 > Attachments: OFBIZ-11828-plugins.patch, OFBIZ-11828.patch > > > 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> map = new HashMap>(); > {code} > Replace with > {code:java} > Map> map = new HashMap<>(); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)