aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Munteanu2010-10-25 17:52:16 (EDT)
committerMatthias Sohn2010-10-26 03:38:17 (EDT)
commitf7e28a19c84e41860aec1bf7fca3d2a2c10c0f30 (patch)
tree59ca3e0ba7f01ee99b6386e7ca50ea86f65e09af
parentc0ec8e7ffb04ab0c8949cef5ce50ee7889cce009 (diff)
downloadegit-f7e28a19c84e41860aec1bf7fca3d2a2c10c0f30.zip
egit-f7e28a19c84e41860aec1bf7fca3d2a2c10c0f30.tar.gz
egit-f7e28a19c84e41860aec1bf7fca3d2a2c10c0f30.tar.bz2
[findbugs] Remove comparison of String objects using ==refs/changes/98/1798/2
Change-Id: If4af5de96618b52e248791aa5163431da48d83e6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java
index e6ebbc7..8bab8f5 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoryPropertySource.java
@@ -247,7 +247,7 @@ public class RepositoryPropertySource implements IPropertySource {
private DisplayMode getCurrentMode() {
String actionText = changeModeAction.getAction().getText();
for (DisplayMode aMode : DisplayMode.values()) {
- if (aMode.getText() == actionText)
+ if (aMode.getText().equals(actionText))
return aMode;
}
return null;