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

Stub generator should not use raw types when casting default return values

    XMLWordPrintableJSON

Details

    Description

      Currently, for methods like:

      List<BuildListener> getBuildListeners() { ... }
      

      The stub generator generates:

      public List<BuildListener> getBuildListeners() { return (List)null; }
      

      Instead of returning:

      (List<BuildListeners>)null
      

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: