Uploaded image for project: 'Giraph'
  1. Giraph
  2. GIRAPH-1208

Use the diamond operator <>.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Since Java 7, programmers can replace type parameters to invoke the constructor of a generic class with an empty set (<>), diamond operator and allow inference of type parameters by the context.  The benefit of the diamond operator is clarity since it is more concise.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reudismam Reudismam Rolim de Sousa
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: