Skip to content

Commit 22df141

Browse files
author
Benjamin Muskalla
committed
Rename API name predicate
1 parent 51475d2 commit 22df141

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

java/ql/src/Telemetry/ExternalAPI.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class ExternalAPI extends Callable {
2929
/**
3030
* Gets information about the external API in the form expected by the CSV modeling framework.
3131
*/
32-
string asHumanReadbleString(ExternalAPI api) {
32+
string getApiName() {
3333
result =
34-
api.getDeclaringType().getPackage() + "." + api.getDeclaringType().getSourceDeclaration() +
35-
"#" + api.getName() + paramsString(api)
34+
this.getDeclaringType().getPackage() + "." + this.getDeclaringType().getSourceDeclaration() +
35+
"#" + this.getName() + paramsString(this)
3636
}
3737

3838
/**

java/ql/src/Telemetry/SupportedExternalSinks.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ where
1919
c.getCallee().getSourceDeclaration() = api and
2020
not c.getFile() instanceof GeneratedFile
2121
)
22-
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
22+
select api.getApiName() as apiname, usages order by usages desc

java/ql/src/Telemetry/SupportedExternalSources.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ where
1919
c.getCallee().getSourceDeclaration() = api and
2020
not c.getFile() instanceof GeneratedFile
2121
)
22-
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
22+
select api.getApiName() as apiname, usages order by usages desc

java/ql/src/Telemetry/SupportedExternalTaint.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ where
1919
c.getCallee().getSourceDeclaration() = api and
2020
not c.getFile() instanceof GeneratedFile
2121
)
22-
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
22+
select api.getApiName() as apiname, usages order by usages desc

java/ql/src/Telemetry/UnsupportedExternalAPIs.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ where
1919
c.getCallee().getSourceDeclaration() = api and
2020
not c.getFile() instanceof GeneratedFile
2121
)
22-
select api.asHumanReadbleString(api) as apiname, usages order by usages desc
22+
select api.getApiName() as apiname, usages order by usages desc

0 commit comments

Comments
 (0)