Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307563

make most fields final in `JavacTrees`

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • tools
    • b23

      `JavacTrees` has this interesting comment:

          // in a world of a single context per compilation, these would all be final

      For a long time now, it has been the case of a single context per compilation. The `updateContext` method is no longer used.

      We can refactor the `init` method and make the fields final.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: