Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5467

Use Java 7's diamond operator

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.3.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Explicit type argument can be replaced with a diamond operator to remove redundant code:

      For example, instead of:

      List<Patient> patients = new ArrayList<Patient>();
      

      we can write:

      List<Patient> patients = new ArrayList<>();
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              michal Michal Fotyga
              Reporter:
              michal Michal Fotyga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: