Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Sonar fix in ecomp-portal-BE-common
[portal.git]
/
ecomp-portal-BE-common
/
src
/
main
/
java
/
org
/
onap
/
portalapp
/
portal
/
domain
/
ExternalRoleDetails.java
diff --git
a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/ExternalRoleDetails.java
b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/ExternalRoleDetails.java
index
bb90278
..
34b2c50
100644
(file)
--- a/
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/ExternalRoleDetails.java
+++ b/
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/ExternalRoleDetails.java
@@
-47,18
+47,16
@@
import lombok.Setter;
@EqualsAndHashCode
public class ExternalRoleDetails implements Comparable {
@EqualsAndHashCode
public class ExternalRoleDetails implements Comparable {
-
private String
name;
+
private String
name;
private boolean active;
private Integer priority;
private boolean active;
private Integer priority;
- private Long appId;
// used by ONAP only
+ private Long appId;
// used by ONAP only
private Long appRoleId; // used by ONAP only
private Long appRoleId; // used by ONAP only
- private List<EPAppRoleFunction> perms;
-
- @Override
- public int compareTo(Object obj) {
- EPRole other = (EPRole)obj;
- return (this.getName() == null || other.getName() == null) ? 1 : getName().equals(other.getName()) ? 0 : 1;
- }
-
+ private List<EPAppRoleFunction> perms;
+ @Override
+ public int compareTo(Object obj) {
+ EPRole other = (EPRole) obj;
+ return (this.getName() == null || other.getName() == null) ? 1 : getName().equals(other.getName()) ? 0 : 1;
+ }
}
}