Class RedundantDef

java.lang.Object
org.openrewrite.groovy.marker.RedundantDef
All Implemented Interfaces:
org.openrewrite.marker.Marker

@Deprecated public class RedundantDef extends Object implements org.openrewrite.marker.Marker
Deprecated.
The `def` keyword is now parsed as a
invalid reference
J.Modifier.Type.LanguageExtension
type.
In Groovy methods can be declared with a return type and also a redundant 'def' keyword. This captures the extra def keyword.
  • Constructor Details

    • RedundantDef

      public RedundantDef()
      Deprecated.