From ce39ae27e9fdcab9b379bf5d9eb552e78e0d9416 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Mon, 24 Aug 2015 08:23:42 +0200 Subject: SONAR-6502 WS permissions/add_group_to_template add a group to a permission template --- .../src/main/java/org/sonar/api/security/DefaultGroups.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/security') 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); } } -- cgit v1.2.3