mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
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:
+12
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user