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

Replace explicit type argument with diamond operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • None
    • ALL COMPONENTS
    • 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.patch
          29 kB
          Pawan Verma
        2. OFBIZ-11828-plugins.patch
          101 kB
          Pawan Verma

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: