Skip to content

Instantly share code, notes, and snippets.

@artem-zinnatullin
Created August 29, 2014 14:09
Show Gist options
  • Save artem-zinnatullin/0f6c1452f818e222759c to your computer and use it in GitHub Desktop.
Save artem-zinnatullin/0f6c1452f818e222759c to your computer and use it in GitHub Desktop.
Dangerous annotation for Java
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to mark code as dangerous
*
* @author Artem Zinnatullin [artem.zinnatullin@gmail.com]
*/
@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.LOCAL_VARIABLE})
public @interface Dangerous {
// no body
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment