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

Analyze dead code

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 5.x
    • None

    Description

      As we all know, source code is meant for developers to read, and the less redundant code there is, the more developer-friendly it becomes, but Groovy allows dead code after throw, return, break and continue, e.g.

      def m() {
         return
         def a = 1
      }
      

      It's better to avoid such dead code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: