Mass-rename MethodAccess -> MethodCall

This commit is contained in:
Chris Smowton
2023-10-24 10:30:26 +01:00
committed by GitHub
parent a10731c591
commit f552a15aae
404 changed files with 1147 additions and 1138 deletions

View File

@@ -1,6 +1,6 @@
import semmle.code.java.dataflow.TaintTracking
from StringBuilderVar sbv, MethodAccess append, Method method
from StringBuilderVar sbv, MethodCall append, Method method
where sbv.getAnAppend() = append and append.getEnclosingCallable() = method
select method.getName(), sbv.getLocation().getStartLine() - method.getLocation().getStartLine(),
sbv, append.getLocation().getStartLine() - method.getLocation().getStartLine(), append,

View File

@@ -1,6 +1,6 @@
import semmle.code.java.dataflow.TaintTracking
from StringBuilderVar sbv, MethodAccess toString, Method method
from StringBuilderVar sbv, MethodCall toString, Method method
where sbv.getToStringCall() = toString and toString.getEnclosingCallable() = method
select method.getName(), sbv.getLocation().getStartLine() - method.getLocation().getStartLine(),
sbv, toString.getLocation().getStartLine() - method.getLocation().getStartLine(), toString

View File

@@ -4,7 +4,7 @@ import semmle.code.java.security.SqlInjectionQuery
import TestUtilities.InlineExpectationsTest
private class SourceMethodSource extends RemoteFlowSource {
SourceMethodSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
SourceMethodSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
override string getSourceType() { result = "source" }
}

View File

@@ -3,7 +3,7 @@ import semmle.code.java.security.LogInjectionQuery
import TestUtilities.InlineFlowTest
private class TestSource extends RemoteFlowSource {
TestSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
TestSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
override string getSourceType() { result = "test source" }
}

View File

@@ -7,7 +7,7 @@ module InsecureJavaMailTest implements TestSig {
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasInsecureJavaMail" and
exists(MethodAccess ma |
exists(MethodCall ma |
ma.getLocation() = location and
element = ma.toString() and
value = ""

View File

@@ -7,7 +7,7 @@ module CleartextStorageAndroidDatabaseTest implements TestSig {
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasCleartextStorageAndroidDatabase" and
exists(SensitiveSource data, LocalDatabaseOpenMethodAccess s, Expr input, Expr store |
exists(SensitiveSource data, LocalDatabaseOpenMethodCall s, Expr input, Expr store |
input = s.getAnInput() and
store = s.getAStore() and
data.flowsTo(input)

View File

@@ -7,7 +7,7 @@ module CleartextStorageSharedPrefsTest implements TestSig {
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasCleartextStorageSharedPrefs" and
exists(SensitiveSource data, SharedPreferencesEditorMethodAccess s, Expr input, Expr store |
exists(SensitiveSource data, SharedPreferencesEditorMethodCall s, Expr input, Expr store |
input = s.getAnInput() and
store = s.getAStore() and
data.flowsTo(input)

View File

@@ -7,7 +7,7 @@ module SpringCsrfProtectionTest implements TestSig {
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasSpringCsrfProtectionDisabled" and
exists(MethodAccess call | disablesSpringCsrfProtection(call) |
exists(MethodCall call | disablesSpringCsrfProtection(call) |
call.getLocation() = location and
element = call.toString() and
value = ""

View File

@@ -3,7 +3,7 @@ import TestUtilities.InlineExpectationsTest
import semmle.code.java.security.SensitiveResultReceiverQuery
class TestSource extends RemoteFlowSource {
TestSource() { this.asExpr().(MethodAccess).getMethod().hasName("source") }
TestSource() { this.asExpr().(MethodCall).getMethod().hasName("source") }
override string getSourceType() { result = "test" }
}