Created
August 29, 2014 14:09
-
-
Save artem-zinnatullin/0f6c1452f818e222759c to your computer and use it in GitHub Desktop.
Dangerous annotation for Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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