Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027181 Type Annotations Cleanup
  3. JDK-8033004

Make base TypeAnnotationPosition data immutable, create better methods for obtaining base TypeAnnotationPositions

XMLWordPrintable

    • b03
    • Not verified

      Presently, TypeAnnotationPosition is a class containing mutable public fields, and a zero-argument constructor. This is dangerous, and it is not clear what combinations of field values represent sensible instances.

      A better way would be to make the class immutable with private constructors, static methods for creating "Base" TypeAnnotationPositions

            emc Eric Mccorkle
            emc Eric Mccorkle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: