Kotlin: Add test case for non serializable inner class query

This commit is contained in:
Tamas Vajk
2022-11-16 14:30:54 +01:00
parent c70f3d35d0
commit 782c82a2d3
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
| NonSerializableInnerClassTest.kt:4:3:5:3 | X | Serializable inner class of non-serializable class $@. Consider making the class static or implementing readObject() and writeObject(). | NonSerializableInnerClassTest.kt:3:1:6:1 | A | A |
| NonSerializableInnerClassTest.kt:9:3:10:3 | X | Serializable inner class of non-serializable class $@. Consider making the class static or implementing readObject() and writeObject(). | NonSerializableInnerClassTest.kt:8:1:11:1 | B | B |

View File

@@ -0,0 +1 @@
Likely Bugs/Serialization/NonSerializableInnerClass.ql

View File

@@ -0,0 +1,11 @@
import java.io.Serializable
class A {
class X : Serializable {
}
}
class B {
inner class X : Serializable {
}
}