We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e580cfa commit 6ad7e6cCopy full SHA for 6ad7e6c
src/main/java/com/ibm/northstar/SymbolTable.java
@@ -484,7 +484,8 @@ private static List<CallSite> getCallSites(Optional<BlockStmt> callableBody) {
484
if (declaringType.contains(" | ")) {
485
declaringType = declaringType.split(" \\| ")[0];
486
}
487
- String declaringTypeName = declaringType.substring(declaringType.lastIndexOf(".")+1);
+ String declaringTypeName = declaringType.contains(".") ?
488
+ declaringType.substring(declaringType.lastIndexOf(".")+1) : declaringType;
489
if (declaringTypeName.equals(scopeExpr.toString())) {
490
isStaticCall = true;
491
0 commit comments