Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.illerax.randominit
import org.codehaus.groovy.transform.GroovyASTTransformationClass
import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target
@Target([ElementType.LOCAL_VARIABLE])
@Retention(RetentionPolicy.SOURCE)
@GroovyASTTransformationClass("com.illerax.randominit.RandomInitTransformation")
@interface RandomInit {
int minLength() default 1
int maxLength() default 100
int min() default 0
int max() default 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment