Skip to content

Commit

Permalink
Exclude .kt files from 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 782c82a commit 7a0e248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ predicate exceptions(NestedClass inner) {

from NestedClass inner, Class outer, string advice
where
inner.fromSource() and
inner.getFile().isJavaSourceFile() and
isSerializable(inner) and
outer = enclosingInstanceType+(inner) and
not isSerializable(outer) and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
| 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 |

0 comments on commit 7a0e248

Please sign in to comment.