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

Refactor LambdaForm constructors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: