Code code = method.getCode(); if (code != null) { byte[] instructionList = code.getCode();    BytecodeScanner.Callback callback = new BytecodeScanner.Callback() { public void handleInstruction(int opcode, int index) { result.set(opcode, true); } };   BytecodeScanner scanner = new BytecodeScanner(); scanner.scan(instructionList, callback); }
Code code = method.getCode(); if (code != null) { byte[] instructionList = code.getCode();
		protected BitSet analyze(Method method) {			final BitSet result = new BitSet();			Code code = method.getCode();			if (code != null) {				byte[] instructionList = code.getCode();					// Create a callback to put the opcodes of the method's				// bytecode instructions into the BitSet.				BytecodeScanner.Callback callback = new BytecodeScanner.Callback() {					public void handleInstruction(int opcode, int index) {						result.set(opcode, true);					}				};					// Scan the method.				BytecodeScanner scanner = new BytecodeScanner();				scanner.scan(instructionList, callback);			}			return result;		}