From ca418b944518414be8db7c82636d42212e08fb8a Mon Sep 17 00:00:00 2001 From: Ilyas Selimov Date: Thu, 2 Jul 2020 01:32:18 +0700 Subject: [PATCH] IDEA-230392 - fixed tests GitOrigin-RevId: 984bd57025cc9e5877b0053b75fd9bed0d14fe72 --- .../ExternalizableClassPositive.java | 24 ++++++------- .../SerializableClassPositive.java | 34 +++++++++---------- 2 files changed, 29 insertions(+), 29 deletions(-) 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]; }