BugInstance bugInstance = new BugInstance("DLS_DEAD_LOCAL_STORE", NORMAL_PRIORITY)
BugInstance bugInstance = new BugInstance(this, "DLS_DEAD_LOCAL_STORE", NORMAL_PRIORITY)
	private void analyzeMethod(ClassContext classContext, Method method)		throws DataflowAnalysisException, CFGBuilderException {		JavaClass javaClass = classContext.getJavaClass();		Dataflow<BitSet, LiveLocalStoreAnalysis> llsaDataflow =			classContext.getLiveLocalStoreDataflow(method);		MethodGen methodGen = classContext.getMethodGen(method);		CFG cfg = classContext.getCFG(method);		for (Iterator<Location> i = cfg.locationIterator(); i.hasNext(); ) {			Location location = i.next();			if (!isStore(location))				continue;			// Ignore exception handler blocks:			// javac always stores caught exceptions in			// a local, even if the value is not used.			if (location.getBasicBlock().isExceptionHandler())				continue;			IndexedInstruction store = (IndexedInstruction) location.getHandle().getInstruction();			int local = store.getIndex();			// Get live stores at this instruction.			// Note that the analysis also computes which stores were			// killed by a subsequent unconditional store.			BitSet liveStoreSet = llsaDataflow.getAnalysis().getFactAtLocation(location);			// Is store alive?			if (llsaDataflow.getAnalysis().isStoreAlive(liveStoreSet, local))				continue;			// Store is dead			// Don't compain about IINC			if (location.getHandle().getInstruction().getOpcode() == Constants.IINC)				continue;			// Ignore assignments that were killed by a subsequent assignment.			if (llsaDataflow.getAnalysis().killedByStore(liveStoreSet, local)) {				if (DEBUG) {					System.out.println("Store at " + location.getHandle() +						" killed by subsequent store");				}				continue;			}			// Ignore dead assignments of null and 0.			// These often indicate defensive programming.			InstructionHandle prev = location.getBasicBlock().getPredecessorOf(location.getHandle());			if (prev != null && defensiveConstantValueOpcodes.get(prev.getInstruction().getOpcode()))				continue;			// Report the bug			BugInstance bugInstance = new BugInstance("DLS_DEAD_LOCAL_STORE", NORMAL_PRIORITY)				.addClassAndMethod(methodGen, javaClass.getSourceFileName())				.addSourceLine(methodGen, javaClass.getSourceFileName(), location.getHandle());			bugReporter.reportBug(bugInstance);		}	}