From b181fe365189e625824e2bb25222ea49b7ec4610 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 6 Nov 2013 15:12:19 +0100 Subject: [PATCH] [findBugs] Don't use == to compare Strings Change-Id: Ie9e3767d1e4ddaf21c41af0017b37397b721d56b Signed-off-by: Matthias Sohn --- .../org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java index 83397f0a0..ae2cfd7f2 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronize.java @@ -102,12 +102,12 @@ public class GitModelSynchronize { } } while (includedResources.addAll(newResources)); - if (dstRev == GitFileRevision.INDEX) { + if (dstRev.equals(GitFileRevision.INDEX)) { final IResource[] resourcesArray = includedResources .toArray(new IResource[includedResources.size()]); openGitTreeCompare(resourcesArray, srcRev, CompareTreeView.INDEX_VERSION, includeLocal); - } else if (srcRev == GitFileRevision.INDEX) { + } else if (srcRev.equals(GitFileRevision.INDEX)) { // Even git tree compare cannot handle index as source... // Synchronize using the local data for now. final ResourceMapping[] mappings = allMappings -- 2.11.4.GIT