Skip to content

Commit

Permalink
Use latest SLCORE
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Mar 6, 2024
1 parent a4cbb35 commit d0b261f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<properties>
<jdk.min.version>17</jdk.min.version>
<sonarlint.core.version>10.0.0.77134</sonarlint.core.version>
<sonarlint.core.version>10.0.0.77144</sonarlint.core.version>
<!-- Version used by Xodus -->
<kotlin.version>1.6.10</kotlin.version>
<!-- analyzers used for tests -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ public void setAnalysisManager(AnalysisScheduler analysisManager) {
this.analysisManager = analysisManager;
}

public void clearBindingCache() {
folderBindingCache.clear();
fileBindingCache.clear();
}

/**
* Return the binding of the given folder.
*
Expand Down Expand Up @@ -255,10 +250,6 @@ public boolean usesSonarCloud() {
return hasAnyBindingThatMatch(ServerConnectionSettings::isSonarCloudAlias);
}

public boolean smartNotificationsDisabled() {
return hasAnyBindingThatMatch(ServerConnectionSettings::isSmartNotificationsDisabled);
}

private boolean hasAnyBindingThatMatch(Predicate<ServerConnectionSettings> predicate) {
return Stream.concat(folderBindingCache.values().stream(), fileBindingCache.values().stream())
.flatMap(Optional::stream)
Expand Down

0 comments on commit d0b261f

Please sign in to comment.