Skip to content

Commit 6806b87

Browse files
committed
Java: Use getSourceDeclaration to handle generic types
1 parent 51af03d commit 6806b87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/ql/src/Telemetry/ExternalApi.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ class ExternalApi extends Callable {
2727
*/
2828
string getApiName() {
2929
result =
30-
this.getDeclaringType().getPackage() + "." + this.getDeclaringType().nestedName() + "#" +
31-
this.getName() + paramsString(this)
30+
this.getDeclaringType().getPackage() + "." +
31+
this.getDeclaringType().getSourceDeclaration().nestedName() + "#" + this.getName() +
32+
paramsString(this)
3233
}
3334

3435
private string getJarName() {

0 commit comments

Comments
 (0)