Skip to content

Commit bf3fb09

Browse files
Alvaro Muñozatorralba
andauthored
Apply suggestions from code review
Co-authored-by: Tony Torralba <[email protected]>
1 parent b235b1c commit bf3fb09

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
@@ -14,8 +14,7 @@ import semmle.code.java.dataflow.FlowSteps
1414
*/
1515
private class GsonReadValueMethod extends Method {
1616
GsonReadValueMethod() {
17-
this.getDeclaringType().hasQualifiedName("com.google.gson", "Gson") and
18-
this.getName().matches("fromJson")
17+
this.hasQualifiedName("com.google.gson", "Gson", "fromJson")
1918
}
2019
}
2120

0 commit comments

Comments
 (0)