ignore abstract non-serializable classes with "serializable methods" in editor; check if there are non-abstract serializable subclasses in batch mode (IDEA-74261 )

This commit is contained in:
anna
2011-10-10 14:17:44 +02:00
parent 27c8bbbce9
commit 2dde0244eb
6 changed files with 67 additions and 19 deletions
@@ -75,3 +75,15 @@ class <warning descr="Externalizable class should have public no-args constructo
public void writeExternal(ObjectOutput out) throws IOException {
}
}
abstract class abstractNoSerializable {
protected Object readResolve() throws ObjectStreamException {
return null;
}
}
class serializableSubclassOfAbstractNoSerializable extends abstractNoSerializable implements Serializable {
public static void main(String[] args) {
System.out.println(new serializableSubclassOfAbstractNoSerializable().toString());
}
}