pl.net.mamut.staticaccess
Annotation Type StaticIndependent


@Retention(value=RUNTIME)
@Target(value=METHOD)
@TypeQualifier
public @interface StaticIndependent

Annotation for marking methods which should be static independent, that is, shouldn't read or write static variables (with the exception of static final immutable objects, like String), or call methods which aren't static-indepdenent.

You can apply this annotation by default to all methods in a class/package by using the edu.umd.cs.findbugs.annotations.DefaultAnnotation or edu.umd.cs.findbugs.annotations.DefaultAnnotationForMethods annotations.

Author:
Adam Warski (adam at warski dot org)