diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/ExternalizableClassPositive.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/ExternalizableClassPositive.java
index e836c5c6caa5..24df5bf48d3b 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/ExternalizableClassPositive.java
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/ExternalizableClassPositive.java
@@ -2,50 +2,50 @@ import java.io.*;
class Test implements Externalizable {
- @Serial
+ @Serial
private static final long serialVersionID = 7874493593505141603L;
- @Serial
+ @Serial
static final long serialVersionUID = 7874493593505141603L;
- @Serial
+ @Serial
private static final ObjectStreamField[] serialPersistentFields = new ObjectStreamField[0];
- @Serial
+ @Serial
private void writeObject(ObjectOutputStream out) throws IOException {
}
- @Serial
+ @Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
}
- @Serial
+ @Serial
private void readObjectNoData() throws ObjectStreamException {
}
- @Serial
+ @Serial
public Object writeReplace(int a) throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
public Integer writeReplace() throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
protected Object readResolve(int a) throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
protected Integer readResolve() throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
@Override
public void writeExternal(ObjectOutput out) throws IOException {
}
- @Serial
+ @Serial
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
}
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/SerializableClassPositive.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/SerializableClassPositive.java
index f13b8458a480..5e0731b0ed64 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/SerializableClassPositive.java
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/serialization/serial_annotation_used_on_wrong_member/SerializableClassPositive.java
@@ -2,62 +2,62 @@ import java.io.*;
class Test implements Serializable {
- @Serial
+ @Serial
private static final long serialVersionID = 7874493593505141603L;
- @Serial
+ @Serial
static final long serialVersionUID = 7874493593505141603L;
- @Serial
+ @Serial
private static final ObjectStreamField[] serialPersistentFiels = new ObjectStreamField[0];
- @Serial
+ @Serial
private static ObjectStreamField[] serialPersistentFields = new ObjectStreamField[0];
- @Serial
+ @Serial
private void writeObj(ObjectOutputStream out) throws IOException {
}
- @Serial
+ @Serial
void writeObject(ObjectOutputStream out) throws IOException {
}
- @Serial
+ @Serial
private void readObj(ObjectInputStream in) throws IOException, ClassNotFoundException {
}
- @Serial
+ @Serial
public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
}
- @Serial
+ @Serial
private void readObjNoData() throws ObjectStreamException {
}
- @Serial
+ @Serial
private void readObjectNoData(Object o) throws ObjectStreamException {
}
- @Serial
+ @Serial
protected void readObjectNoData() throws ObjectStreamException {
}
- @Serial
+ @Serial
public Integer writeReplace() throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
public Object writeReplace(int a) throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
protected Object readResolve(int a) throws ObjectStreamException {
return 1;
}
- @Serial
+ @Serial
protected Integer readResolve() throws ObjectStreamException {
return 1;
}
}
class Foo {
- @Serial
+ @Serial
private static final long serialVersionUID = 7874493593505141603L;
- @Serial
+ @Serial
private static final ObjectStreamField[] serialPersistentFields = new ObjectStreamField[0];
}