if (!isSerializable) { try { if (Repository.instanceOf(obj,"java.io.Externalizable")) isSerializable = true; if (Repository.instanceOf(obj,"java.io.Serializable")) isSerializable = true; if (Repository.instanceOf(obj,"java.rmi.Remote")) { isSerializable = true; } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); }
if (!isSerializable) { try { if (Repository.instanceOf(obj, "java.io.Externalizable")) isSerializable = true; if (Repository.instanceOf(obj, "java.io.Serializable")) isSerializable = true; if (Repository.instanceOf(obj, "java.rmi.Remote")) { isSerializable = true; } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } }   super.visit(obj);
  public void visit(JavaClass obj)     {	hasNativeMethods = false;	isSerializable = false;	if (getSuperclassName().indexOf("$") >= 0		|| getSuperclassName().indexOf("+") >= 0) {		// System.out.println("hicfsc: " + betterClassName);		innerClassCannotBeStatic.add(getDottedClassName());		// System.out.println("hicfsc: " + betterSuperclassName);		innerClassCannotBeStatic.add(getDottedSuperclassName());		}       // Does this class directly implement Serializable?        String [] interface_names = obj.getInterfaceNames();        for(int i=0; i < interface_names.length; i++) {            if (interface_names[i].equals("java.io.Externalizable")) {                isSerializable = true;                }            else if (interface_names[i].equals("java.io.Serializable")) {                isSerializable = true;                break;                }            }        // Does this class indirectly implement Serializable?        if (!isSerializable) {            try {                if (Repository.instanceOf(obj,"java.io.Externalizable"))                    isSerializable = true;                if (Repository.instanceOf(obj,"java.io.Serializable"))                    isSerializable = true;                if (Repository.instanceOf(obj,"java.rmi.Remote")) {                    isSerializable = true;                    }            } catch (ClassNotFoundException e) {                bugReporter.reportMissingClass(e);            }	}	// System.out.println(getDottedClassName() + " is serializable: " + isSerializable);	super.visit(obj);	}