diff --git a/src/main/groovy/lang/Newify.java b/src/main/groovy/lang/Newify.java index 66edcde9c0..5bf7fdfaf5 100644 --- a/src/main/groovy/lang/Newify.java +++ b/src/main/groovy/lang/Newify.java @@ -28,7 +28,7 @@ /** * Annotation that supports writing constructor call expressions without the 'new' * keyword. Instead they can be written "Ruby-style" as a method call to a 'new' - * method or "Python-style" by just omitting the keyword missing. + * method or "Python-style" by just omitting the 'new' keyword. *
* It allows you to write code snippets like this ("Python-style"): *
@@ -100,7 +100,7 @@ @Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.TYPE, ElementType.FIELD, ElementType.LOCAL_VARIABLE}) @GroovyASTTransformationClass("org.codehaus.groovy.transform.NewifyASTTransformation") public @interface Newify { - Class[] value(); + Class>[] value() default {}; /** * @return if automatic conversion of "Ruby-style" new method calls should occur