File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
java/ql/lib/semmle/code/java/frameworks/google Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ private class ExplicitlyReadGsonDeserializableType extends GsonDeserializableTyp
3939 }
4040}
4141
42- predicate test ( MethodAccess ma ) {
43- ma .getMethod ( ) instanceof GsonReadValueMethod
44- }
45-
4642/** A type used in a `GsonDeserializableField` declaration. */
4743private class FieldReferencedGsonDeserializableType extends GsonDeserializableType {
4844 FieldReferencedGsonDeserializableType ( ) {
@@ -56,7 +52,7 @@ class GsonDeserializableField extends DeserializableField {
5652 GsonDeserializableField ( ) {
5753 exists ( GsonDeserializableType superType |
5854 superType = this .getDeclaringType ( ) .getAnAncestor ( ) and
59- not superType instanceof TypeObject and
55+ not superType instanceof TypeObject and
6056 // TODO: if we have the source, can we just track the flow through the backing fields?
6157 //superType.fromSource()
6258 not superType .( RefType ) .getPackage ( ) .getName ( ) .matches ( "java%" )
@@ -65,7 +61,5 @@ class GsonDeserializableField extends DeserializableField {
6561}
6662
6763private class GsonInheritTaint extends DataFlow:: FieldContent , TaintInheritingContent {
68- GsonInheritTaint ( ) {
69- this .getField ( ) instanceof GsonDeserializableField
70- }
64+ GsonInheritTaint ( ) { this .getField ( ) instanceof GsonDeserializableField }
7165}
You can’t perform that action at this time.
0 commit comments