public void commitOnly(final Set methods, final Set fields) {
		classInfo.setClassIndex(constants.addConstant(Constant.CLASS, type));
		classInfo.setSuperclassIndex(constants.addConstant(Constant.CLASS,
				superclass));

		final int ifs[] = new int[interfaces.length];

		for (int i = 0; i < ifs.length; i++) {
			ifs[i] = constants.addConstant(Constant.CLASS, interfaces[i]);
		}

		classInfo.setInterfaceIndices(ifs);

		classInfo.setConstants(constants.constants());

		classInfo.commitOnly(methods, fields);

		// This class is no longer dirty
		this.setDirty(false);
	}