From 51c59217a7538bdab7ff4fa51cbc8905af540a65 Mon Sep 17 00:00:00 2001 From: Tobias Hahnen Date: Mon, 7 Oct 2024 12:52:20 +0200 Subject: [PATCH] SLE-959: Fix SQ issue --- .../internal/backend/SonarLintEclipseHeadlessRpcClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/backend/SonarLintEclipseHeadlessRpcClient.java b/org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/backend/SonarLintEclipseHeadlessRpcClient.java index 189487c75..7b8c8c169 100644 --- a/org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/backend/SonarLintEclipseHeadlessRpcClient.java +++ b/org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/backend/SonarLintEclipseHeadlessRpcClient.java @@ -194,7 +194,7 @@ public void didSynchronizeConfigurationScopes(Set configurationScopeIds) public boolean matchProjectBranch(String configurationScopeId, String branchNameToMatch, SonarLintCancelChecker cancelChecker) throws ConfigScopeNotFoundException { var project = SonarLintUtils.resolveProject(configurationScopeId); - return VcsService.matchSonarProjectBranch(project, branchNameToMatch, Set.of(branchNameToMatch)) == branchNameToMatch; + return branchNameToMatch.equals(VcsService.matchSonarProjectBranch(project, branchNameToMatch, Set.of(branchNameToMatch))); } @Override