aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-24 08:23:42 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-08-24 10:38:51 +0200
commitce39ae27e9fdcab9b379bf5d9eb552e78e0d9416 (patch)
tree3bb3773cf0b728ef4724fee9f26199f5879c3ff3 /sonar-plugin-api
parent0e271c15e6aa0e77fb1edc1ba42d0589948d141d (diff)
downloadsonarqube-ce39ae27e9fdcab9b379bf5d9eb552e78e0d9416.tar.gz
sonarqube-ce39ae27e9fdcab9b379bf5d9eb552e78e0d9416.zip
SONAR-6502 WS permissions/add_group_to_template add a group to a permission template
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/security/DefaultGroups.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/security/DefaultGroups.java b/sonar-plugin-api/src/main/java/org/sonar/api/security/DefaultGroups.java
index 2d9a4f1154c..8f07391bf7b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/security/DefaultGroups.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/security/DefaultGroups.java
@@ -19,6 +19,8 @@
*/
package org.sonar.api.security;
+import javax.annotation.Nullable;
+
/**
* Name of the default user groups
*
@@ -32,7 +34,7 @@ public final class DefaultGroups {
public static final String ADMINISTRATORS = "sonar-administrators";
public static final String USERS = "sonar-users";
- public static boolean isAnyone(String groupName) {
+ public static boolean isAnyone(@Nullable String groupName) {
return ANYONE.equalsIgnoreCase(groupName);
}
}