Skip to content

Commit 282ee08

Browse files
committed
Java: Fix GsonDeserializableField
1 parent 24b99ae commit 282ee08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/ql/lib/semmle/code/java/frameworks/google/GsonSerializability.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ private class GsonDeserializableField extends DeserializableField {
5050
exists(GsonDeserializableType superType |
5151
superType = this.getDeclaringType().getAnAncestor() and
5252
not superType instanceof TypeObject and
53-
//superType.fromSource()
54-
not superType.(RefType).getPackage().getName().matches("java%")
53+
superType.fromSource()
5554
)
5655
}
5756
}

0 commit comments

Comments
 (0)