bugReporter.reportBug(new BugInstance("SA_LOCAL_SELF_ASSIGNMENT", NORMAL_PRIORITY)
bugReporter.reportBug(new BugInstance(this, "SA_LOCAL_SELF_ASSIGNMENT", NORMAL_PRIORITY)
	private void analyzeBasicBlock(ClassContext classContext, Method method, BasicBlock basicBlock) {		int lastLoaded = -1;		for (Iterator<InstructionHandle> i = basicBlock.instructionIterator(); i.hasNext();) {			InstructionHandle handle = i.next();			Instruction ins = handle.getInstruction();			int loaded = -1, stored = -1;			if (ins instanceof LoadInstruction) {				LoadInstruction load = (LoadInstruction) ins;				loaded = load.getIndex();			} else if (ins instanceof StoreInstruction) {				StoreInstruction store = (StoreInstruction) ins;				stored = store.getIndex();			}			if (stored >= 0 && stored == lastLoaded) {				JavaClass javaClass = classContext.getJavaClass();				MethodGen methodGen = classContext.getMethodGen(method);				String sourceFile = javaClass.getSourceFileName();				bugReporter.reportBug(new BugInstance("SA_LOCAL_SELF_ASSIGNMENT", NORMAL_PRIORITY)				        .addClass(javaClass)				        .addMethod(methodGen, sourceFile)				        .addSourceLine(methodGen, sourceFile, handle));			}			lastLoaded = (loaded >= 0) ? loaded : -1;		}	}