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
39
39
}
40
40
}
41
41
42
- predicate test ( MethodAccess ma ) {
43
- ma .getMethod ( ) instanceof GsonReadValueMethod
44
- }
45
-
46
42
/** A type used in a `GsonDeserializableField` declaration. */
47
43
private class FieldReferencedGsonDeserializableType extends GsonDeserializableType {
48
44
FieldReferencedGsonDeserializableType ( ) {
@@ -56,7 +52,7 @@ class GsonDeserializableField extends DeserializableField {
56
52
GsonDeserializableField ( ) {
57
53
exists ( GsonDeserializableType superType |
58
54
superType = this .getDeclaringType ( ) .getAnAncestor ( ) and
59
- not superType instanceof TypeObject and
55
+ not superType instanceof TypeObject and
60
56
// TODO: if we have the source, can we just track the flow through the backing fields?
61
57
//superType.fromSource()
62
58
not superType .( RefType ) .getPackage ( ) .getName ( ) .matches ( "java%" )
@@ -65,7 +61,5 @@ class GsonDeserializableField extends DeserializableField {
65
61
}
66
62
67
63
private class GsonInheritTaint extends DataFlow:: FieldContent , TaintInheritingContent {
68
- GsonInheritTaint ( ) {
69
- this .getField ( ) instanceof GsonDeserializableField
70
- }
64
+ GsonInheritTaint ( ) { this .getField ( ) instanceof GsonDeserializableField }
71
65
}
You can’t perform that action at this time.
0 commit comments