aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-01-16 13:41:24 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-01-16 13:59:09 +0400
commitff0901201f06ddf3a1af93b45dce89ab924d2143 (patch)
treecd9fcca6c5aaacc6fa95c8b4d00d90291e0f584f /sonar-plugin-api
parente5d8abcccd285c3b6798e882c173eafec14d7e31 (diff)
downloadsonarqube-ff0901201f06ddf3a1af93b45dce89ab924d2143.tar.gz
sonarqube-ff0901201f06ddf3a1af93b45dce89ab924d2143.zip
Fix violations
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/security/GroupRole.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/security/GroupRole.java b/sonar-plugin-api/src/main/java/org/sonar/api/security/GroupRole.java
index 3e4379e574b..16f750b02db 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/security/GroupRole.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/security/GroupRole.java
@@ -19,6 +19,7 @@
*/
package org.sonar.api.security;
+import com.google.common.base.Objects;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.sonar.api.database.BaseIdentifiable;
@@ -81,7 +82,7 @@ public class GroupRole extends BaseIdentifiable {
}
public boolean isAnyone() {
- return groupId==ANYONE_GROUP_ID;
+ return Objects.equal(groupId, ANYONE_GROUP_ID);
}
@Override