mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +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:
@@ -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());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import java.io.*;
|
||||
|
||||
public abstract class A {
|
||||
protected Object readResolve() throws ObjectStreamException {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class AImpl extends A implements Serializable {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new AImpl().toString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user