Skip to content

Commit 1f9c575

Browse files
committed
Fix bug in missing call edge
Signed-off-by: Rahul Krishna <[email protected]>
1 parent 3555fa4 commit 1f9c575

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/com/ibm/northstar/CodeAnalyzer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
102102
}
103103

104104
else {
105-
String dependencies = null;
106105
// download library dependencies of project for type resolution
107-
if (!BuildProject.downloadLibraryDependencies(input)) {
106+
String dependencies = null;
107+
if (BuildProject.downloadLibraryDependencies(input)) {
108108
dependencies = String.valueOf(BuildProject.libDownloadPath);
109+
} else {
109110
Log.warn("Failed to download library dependencies of project");
110111
}
111112
// construct symbol table for project, write parse problems to file in output directory if specified

src/main/java/com/ibm/northstar/utils/BuildProject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
public class BuildProject {
1515

16-
public static Path libDownloadPath = null;
16+
public static Path libDownloadPath;
1717
private static final String LIB_DEPS_DOWNLOAD_DIR = ".library-dependencies";
1818
private static final String MAVEN_CMD = System.getProperty("os.name").contains("win") ? "mvn.cmd" : "mvn";
1919
private static final String GRADLE_CMD = System.getProperty("os.name").contains("win") ? "gradlew.bat" : "gradlew";

0 commit comments

Comments
 (0)