use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class SideEffectConstructor method visitClassContext.
/**
* overrides the visitor to set up and tear down the opcode stack
*
* @param classContext
* the context object of the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
super.visitClassContext(classContext);
} finally {
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class SillynessPotPourri method visitClassContext.
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
lastPCs = new int[4];
branchTargets = new HashMap<>();
trimLocations = new HashMap<>();
isInterface = classContext.getJavaClass().isInterface();
super.visitClassContext(classContext);
} finally {
stack = null;
lastPCs = null;
branchTargets = null;
trimLocations = null;
staticConstants = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class SpuriousThreadStates method visitClassContext.
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
super.visitClassContext(classContext);
} finally {
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class StackedTryBlocks method visitClassContext.
/**
* overrides the visitor to reset the opcode stack
*
* @param classContext
* the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
if (THROWABLE_CLASS != null) {
stack = new OpcodeStack();
super.visitClassContext(classContext);
}
} finally {
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class UnrelatedCollectionContents method visitClassContext.
/**
* implements the visitor to create and destroy the stack and member collections
*
* @param classContext
* the context object for the currently parsed class
*/
@Override
public void visitClassContext(final ClassContext classContext) {
try {
stack = new OpcodeStack();
memberCollections = new HashMap<>();
memberSourceLineAnnotations = new HashMap<>();
super.visitClassContext(classContext);
} finally {
stack = null;
memberCollections = null;
memberSourceLineAnnotations = null;
}
}
Aggregations