Skip to content

Commit

Permalink
Kotlin: Add test case for non serializable inner class query
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasvajk committed Nov 16, 2022
1 parent c70f3d3 commit 782c82a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Likely Bugs/Serialization/NonSerializableInnerClass.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import java.io.Serializable

class A {
class X : Serializable {
}
}

class B {
inner class X : Serializable {
}
}

0 comments on commit 782c82a

Please sign in to comment.