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

wasted work in "ClassCompletionVerifier.addErrorIfParamsAndReturnTypeEqual"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6
    • None
    • None
    • Patch

    Description

      The problem appears in Groovy 2.0.5 and in revision 740ae7c.. I
      attached a one-line patch (patch.diff) that fixes it.

      In method
      "ClassCompletionVerifier.addErrorIfParamsAndReturnTypeEqual", the loop
      over "p1" and "p2" should break immediately after "isEqual" becomes
      "false". All the iterations after "isEqual" is "false" do not perform
      any useful work.

      Attachments

        1. patch.diff
          0.7 kB

        Activity

          People

            blackdrag Jochen Theodorou
            adriannistor Adrian Nistor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: