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

Refactor LambdaForm constructors

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 21
    • 21
    • core-libs
    • None

    Description

      The LambdaForm class has several constructors, some of which do checks on the arguments, and some of which bypass checks because they are not needed. There is also a hierarchy of delegating constructors that provides default values for some of the arguments.

      But, overall it's hard to at a glance see which constructor calls which, and which constructor will perform which checks.

      Let's refactor these into static factories with clear names to make this clearer.

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: