@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@Inherited
public @interface SuppressStaticInitializationFor
The reason why an annotation is needed for this is because we need to know at load-time if the static constructor execution for this class should be skipped or not. Unfortunately we cannot pass the class as the value parameter to the annotation (and thus get type-safe values) because then the class would be loaded before PowerMock could have suppressed its constructor.
Modifier and Type | Optional Element and Description |
---|---|
ByteCodeFramework |
byteCodeFramework |
java.lang.String[] |
value |
public abstract ByteCodeFramework byteCodeFramework