summaryrefslogtreecommitdiff
path: root/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
index 5649ff4..aca126d 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
@@ -43,11 +43,7 @@ public class UserRolePK implements Serializable {
if (userId != that.userId) {
return false;
}
- if (roleId != that.roleId) {
- return false;
- }
-
- return true;
+ return roleId == that.roleId;
}
@Override