- if (compareValues(getName(), other.getName()) && compareValues(getRoleid(), other.getRoleid())
- && compareValues(getDescription(), other.getDescription())) {
+
+ Role other = (Role) obj;
+ if (Objects.equals(getName(), other.getName()) && Objects.equals(getRoleid(), other.getRoleid())
+ && Objects.equals(getDescription(), other.getDescription())) {