public void visit(Method obj) { int accessFlags = obj.getAccessFlags(); boolean isSynchronized = (accessFlags & ACC_SYNCHRONIZED) != 0;  if (!isSynchronized) return; if (methodName.equals("readObject")) bugReporter.reportBug(new BugInstance("RS_READOBJECT_SYNC", NORMAL_PRIORITY).addClass(this)); else if (methodName.equals("writeObject")) writeObjectIsSynchronized = true; else synchronizedMethods++;
public void visit(JavaClass obj)     { int flags = obj.getAccessFlags(); isAbstract = (flags & ACC_ABSTRACT) != 0 || (flags & ACC_INTERFACE) != 0; sawSerialVersionUID = false; isSerializable = false; String [] interface_names = obj.getInterfaceNames(); for(int i=0; i < interface_names.length; i++) { if (interface_names[i].equals("java.io.Serializable")) { isSerializable = true; } }
    public void visit(Method obj) {	int accessFlags = obj.getAccessFlags();        boolean isSynchronized = (accessFlags & ACC_SYNCHRONIZED) != 0;	// System.out.println(methodName + isSynchronized);	if (!isSynchronized) return;	if (methodName.equals("readObject")) 		bugReporter.reportBug(new BugInstance("RS_READOBJECT_SYNC", NORMAL_PRIORITY).addClass(this));	else if (methodName.equals("writeObject")) 		writeObjectIsSynchronized = true;	else synchronizedMethods++;	}