Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Created November 11, 2011 12:33
Show Gist options
  • Select an option

  • Save tristantarrant/1357893 to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/1357893 to your computer and use it in GitHub Desktop.
package net.dataforte.classretention;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.CLASS)
public @interface SimpleAnnotation {
String aString();
int anInt();
SimpleEnum aSimpleEnum();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment