summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}