use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class PossiblyRedundantMethodCalls method visitClassContext.
/**
* implements the visitor to create and clear the stack, method call maps, and branch targets
*
* @param classContext
* the context object of the currently visited class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
localMethodCalls = new HashMap<>();
fieldMethodCalls = new HashMap<>();
staticMethodCalls = new HashMap<>();
branchTargets = new BitSet();
super.visitClassContext(classContext);
} finally {
stack = null;
localMethodCalls = null;
fieldMethodCalls = null;
staticMethodCalls = null;
branchTargets = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class SuspiciousUninitializedArray method visitClassContext.
/**
* overrides the visitor to reset the stack
*
* @param classContext
* the context object of the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
isEnum = classContext.getJavaClass().isEnum();
stack = new OpcodeStack();
uninitializedRegs = new BitSet();
arrayAliases = new HashMap<>();
storedUVs = new HashMap<>();
super.visitClassContext(classContext);
} finally {
stack = null;
uninitializedRegs = null;
arrayAliases = null;
storedUVs = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class SyncCollectionIterators method visitClassContext.
@Override
public void visitClassContext(final ClassContext classContext) {
try {
memberCollections = new HashSet<>();
localCollections = new BitSet();
monitorObjects = new ArrayList<>();
stack = new OpcodeStack();
super.visitClassContext(classContext);
} finally {
memberCollections = null;
localCollections = null;
monitorObjects = null;
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class TailRecursion method visitClassContext.
/**
* implements the visitor to create and clear the 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 TristateBooleanPattern method visitClassContext.
/**
* implements the visitor to allocate 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;
}
}
Aggregations