Skip to content

Commit

Permalink
Fix bug in missing call edge
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Krishna <[email protected]>
  • Loading branch information
rahlk committed May 24, 2024
1 parent 3555fa4 commit 1f9c575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/ibm/northstar/CodeAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
}

else {
String dependencies = null;
// download library dependencies of project for type resolution
if (!BuildProject.downloadLibraryDependencies(input)) {
String dependencies = null;
if (BuildProject.downloadLibraryDependencies(input)) {
dependencies = String.valueOf(BuildProject.libDownloadPath);
} else {
Log.warn("Failed to download library dependencies of project");
}
// construct symbol table for project, write parse problems to file in output directory if specified
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ibm/northstar/utils/BuildProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public class BuildProject {

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

0 comments on commit 1f9c575

Please sign in to comment.