Move externalizable check to inspection

(IDEABKL-3776 "Externalizable class should have public no-args constructor" warning false negative)
This commit is contained in:
Bas Leijdekkers
2012-05-16 21:21:58 +02:00
parent ceac1c66bb
commit 9dfc44532d
11 changed files with 226 additions and 64 deletions
@@ -48,33 +48,6 @@ class b {
}
////////////////////////////
abstract class e implements Externalizable {
}
class eImpl extends e {
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
}
public void writeExternal(ObjectOutput out) throws IOException {
}
}
class <warning descr="Externalizable class should have public no-args constructor">eImpl1</warning> extends e {
private eImpl1() {}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
}
public void writeExternal(ObjectOutput out) throws IOException {
}
}
class <warning descr="Externalizable class should have public no-args constructor">eImpl2</warning> extends e {
public eImpl2(int i) {
System.out.print(i);
}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
}
public void writeExternal(ObjectOutput out) throws IOException {
}
}
abstract class abstractNoSerializable {
protected Object readResolve() throws ObjectStreamException {