Uploaded image for project: 'Metadata Aggregator'
  1. Metadata Aggregator
  2. MDA-108

make use of Java 7 type inference

    XMLWordPrintable

    Details

      Description

      Now that we're using Java 7, we can clean up some of the messier collection creations using type inference. Most sites will match this regular expression:

      new [A-Za-z]*(List|Set|Map)<[A-Z]
      

      The type parameter can just be replaced by diamond, "<>".

        Attachments

          Activity

            People

            Assignee:
            ian@iay.org.uk Ian Young
            Reporter:
            ian@iay.org.uk Ian Young
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 36 minutes
                36m