Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9122

code smell in ProcessingUnit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-beta-1, 2.5.7
    • 2.5.8, 3.0.0-beta-2
    • None

    Description

      We have both configure and setConfiguration which by default do the same thing. The constructor only uses the former. It isn't clear which should be overridden if wanting to extend the class using normal OO conventions. We can make the setConfiguration method final to capture the intent of current usage.

      The change is a breaking change if code was overriding setConfiguration but in that case it was probably broken to start with.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: