summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Liebig2008-02-12 10:08:43 (EST)
committerStefan Liebig2008-02-12 10:08:43 (EST)
commit5c84f4053f8e257211cd250d74e46cdd979bbc85 (patch)
tree8c5bc5dc7d9772a1330557f306cef2cd24fe3713
parent1086e62b7b6ad8093a7090bc36c488ff99d64470 (diff)
downloadorg.eclipse.riena-5c84f4053f8e257211cd250d74e46cdd979bbc85.zip
org.eclipse.riena-5c84f4053f8e257211cd250d74e46cdd979bbc85.tar.gz
org.eclipse.riena-5c84f4053f8e257211cd250d74e46cdd979bbc85.tar.bz2
equals instead ==
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/policies/TestPermission.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/policies/TestPermission.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/policies/TestPermission.java
index 783c475..3eec707 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/policies/TestPermission.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/policies/TestPermission.java
@@ -21,9 +21,7 @@ public class TestPermission extends Permission {
@Override
public boolean equals(Object obj) {
if (obj instanceof TestPermission) {
- if (((TestPermission) obj).getName() == this.getName()) {
- return true;
- }
+ return ((TestPermission) obj).getName().equals(this.getName());
}
return false;
}