Skip to content

Instantly share code, notes, and snippets.

@illerax
Last active January 4, 2017 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save illerax/4d71c90fe3edf5cd090cc1b94b28df36 to your computer and use it in GitHub Desktop.
Save illerax/4d71c90fe3edf5cd090cc1b94b28df36 to your computer and use it in GitHub Desktop.
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