Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1591

Java 1.7 feature Diamonds replaced Generics

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      Java 1.7 does not require specifying Generics in constructor for variable assignment.

      Map<String, List<TestMethodStats>> mergedTestHistoryResult = new HashMap<String, List<TestMethodStats>>();
      

      turns to in Java 1.7:

      Map<String, List<TestMethodStats>> mergedTestHistoryResult = new HashMap<>();
      

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              tibordigana Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: