Skip to content

Commit

Permalink
Don't use the static ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoader committed Aug 30, 2024
1 parent 1b9fa5a commit 6ed571f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private static synchronized WorkspaceRoot getExternalWorkspaceRootsFile(String w
return workspaceRootCache.get(workspaceName);
}

BlazeProjectData blazeProjectData = getBlazeProjectData(project);
BlazeProjectData blazeProjectData = BlazeProjectDataManager.getInstance(project).getBlazeProjectData();
if (blazeProjectData != null) {
logger.warn("getExternalWorkspaceRootsFile: " + blazeProjectData.getBlazeInfo().getOutputBase());
File workspaceDir = new File(blazeProjectData.getBlazeInfo().getOutputBase(), "external/" + workspaceName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public MockBlazeProjectDataBuilder setWorkspaceLanguageSettings(
}

@CanIgnoreReturnValue
public MockBlazeProjectDataBuilder setExternalWorkspaceData(ExternalWorkspaceData externalWorkspaceData) {
public MockBlazeProjectDataBuilder setExternalWorkspaceData(
ExternalWorkspaceData externalWorkspaceData) {
this.externalWorkspaceData = externalWorkspaceData;
return this;
}
Expand Down

0 comments on commit 6ed571f

Please sign in to comment.