use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class InappropriateToStringUse 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 {
stack = new OpcodeStack();
toStringRegisters = new HashMap<>();
packageName = classContext.getJavaClass().getPackageName();
super.visitClassContext(classContext);
} finally {
stack = null;
toStringRegisters = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class InconsistentKeyNameCasing method visitClassContext.
/**
* implements the visitor to create 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 ConcurrentCollectionIssues method visitClassContext.
/**
* overrides the visitor to initialize the opcode stack
*
* @param classContext
* the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
if ((collectionClass == null) || (mapClass == null)) {
return;
}
stack = new OpcodeStack();
fieldUserValues = new HashMap<>();
classContext.getJavaClass().accept(this);
} finally {
fieldUserValues = null;
stack = null;
}
}
use of edu.umd.cs.findbugs.OpcodeStack in project fb-contrib by mebigfatguy.
the class ConfusingArrayAsList method visitClassContext.
/**
* implements the visitor to create and teardown 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 ConstantListIndex method visitClassContext.
/**
* implements the visitor to create and clear the const0loop set
*
* @param classContext
* the context object of the currently parsed class
*/
@Override
public void visitClassContext(ClassContext classContext) {
try {
if ((invocationHandlerClass != null) && classContext.getJavaClass().implementationOf(invocationHandlerClass)) {
return;
}
iConst0Looped = new BitSet();
stack = new OpcodeStack();
super.visitClassContext(classContext);
} catch (ClassNotFoundException cnfe) {
bugReporter.reportMissingClass(cnfe);
} finally {
iConst0Looped = null;
stack = null;
}
}
Aggregations