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

Refine @ToString and @EqualsAndHashCode generation of fallback methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-beta-2
    • None
    • None

    Description

      When using @ToString and @EqualsAndHashCode, the transforms attempt to create a private underscore version of the method. This supports a somewhat crude mechanism for customisation where a hand-written method could call and tweak the underscore version, e.g. we could write our own toString() and call _toString(). This underscore method wouldn't normally be useful if the found toString() was generated by another transform. This issue is to adjust the relevant transforms to not generate the underscore variant in this scenario.

      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: