Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11828

Replace explicit type argument with diamond operator

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: ALL COMPONENTS
    • Labels:
      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<>();
      

        Attachments

        1. OFBIZ-11828-plugins.patch
          101 kB
          Pawan Verma
        2. OFBIZ-11828.patch
          29 kB
          Pawan Verma

          Activity

            People

            • Assignee:
              pawan Pawan Verma
              Reporter:
              pawan Pawan Verma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: