use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class AbstractCollectionScanningDetector method visitClassContext.
/**
* implements the visitor to create and clear the stack, and report missing class errors
*
* @param classContext
* the context object of the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
if (collectionClass == null) {
return;
}
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 ArrayIndexOutOfBounds method visitClassContext.
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
initializedRegs = new BitSet();
modifyRegs = new BitSet();
nullStoreToLocation = new HashMap<Integer, Integer>();
super.visitClassContext(classContext);
} finally {
stack = null;
initializedRegs = null;
modifyRegs = null;
nullStoreToLocation = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class BloatedAssignmentScope method visitClassContext.
/**
* implements the visitor to create and the clear the register to location map
*
* @param classContext
* the context object of the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
ignoreRegs = new BitSet();
tryBlocks = new BitSet();
catchHandlers = new BitSet();
switchTargets = new BitSet();
monitorSyncPCs = new ArrayList<>(5);
stack = new OpcodeStack();
super.visitClassContext(classContext);
} finally {
ignoreRegs = null;
tryBlocks = null;
catchHandlers = null;
switchTargets = null;
monitorSyncPCs = null;
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class BloatedSynchronizedBlock method visitClassContext.
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
unsafeAliases = new BitSet();
branchInfo = new HashMap<>();
super.visitClassContext(classContext);
} finally {
stack = null;
unsafeAliases = null;
branchInfo = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class ClassEnvy method visitClassContext.
/**
* overrides the visitor to collect package and class names
*
* @param classContext
* the context object that holds the JavaClass being parsed
*/
@Override
public void visitClassContext(final ClassContext classContext) {
try {
JavaClass cls = classContext.getJavaClass();
packageName = cls.getPackageName();
clsName = cls.getClassName();
stack = new OpcodeStack();
super.visitClassContext(classContext);
} finally {
stack = null;
clsAccessCount = null;
}
}
Aggregations