Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-11-17 16:30:19 +0000
committerMichael Keppler2019-11-17 16:30:19 +0000
commit308750d14ef136f3c7468fa7cbf261c9f3f4967e (patch)
tree2b2e0f8a4acd1a6f147edb59326bc44d24c7c911
parent6540493f4a86a19696eda84ce03826b62ce6dfee (diff)
downloadegit-308750d14ef136f3c7468fa7cbf261c9f3f4967e.tar.gz
egit-308750d14ef136f3c7468fa7cbf261c9f3f4967e.tar.xz
egit-308750d14ef136f3c7468fa7cbf261c9f3f4967e.zip
Use String comparison
Don't compare String references. Change-Id: I6d1056594385308cd406e0cb1b8171adaa3b6585 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/RefFilterHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/RefFilterHelper.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/RefFilterHelper.java
index 26de601cf..89414bf3d 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/RefFilterHelper.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/RefFilterHelper.java
@@ -159,8 +159,8 @@ public class RefFilterHelper {
String currentDefault = store.getDefaultString(
UIPreferences.RESOURCEHISTORY_SELECTED_REF_FILTERS);
- if (currentDefault != DEFAULT_SELECTED_REFS
- && currentDefault != DEFAULT_SELECTED_REFS_ALL_BRANCHES) {
+ if (!DEFAULT_SELECTED_REFS.equals(currentDefault)
+ && !DEFAULT_SELECTED_REFS_ALL_BRANCHES.equals(currentDefault)) {
// The default was changed elsewhere.
// Probably a plugin customization.
// Don't overwrite it.

Back to the top