Apply suggestions from code review

Co-authored-by: Tony Torralba <atorralba@users.noreply.github.com>
This commit is contained in:
Alvaro Muñoz
2023-05-18 12:39:41 +02:00
committed by GitHub
parent b235b1cbb9
commit bf3fb09dfd

View File

@@ -14,8 +14,7 @@ import semmle.code.java.dataflow.FlowSteps
*/
private class GsonReadValueMethod extends Method {
GsonReadValueMethod() {
this.getDeclaringType().hasQualifiedName("com.google.gson", "Gson") and
this.getName().matches("fromJson")
this.hasQualifiedName("com.google.gson", "Gson", "fromJson")
}
}