diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-02 14:00:05 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-02 14:00:05 +0200 |
commit | 1e8ddfd2b0e2748bdc2daf85714ba186c12908ca (patch) | |
tree | 4d89f86dce668994f7524d86b324323c59810ea1 | |
parent | 22855a6da7c5f8653594585ee680b29a48776bda (diff) | |
download | sonarqube-1e8ddfd2b0e2748bdc2daf85714ba186c12908ca.tar.gz sonarqube-1e8ddfd2b0e2748bdc2daf85714ba186c12908ca.zip |
Fix UT
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWs.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWs.java b/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWs.java index 99bb3e3cfeb..d3598404df9 100644 --- a/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWs.java +++ b/sonar-server/src/main/java/org/sonar/server/permission/ws/PermissionsWs.java @@ -48,11 +48,10 @@ public class PermissionsWs implements WebService { .setSince("3.7") .setPost(true) .setHandler(RailsHandler.INSTANCE); - action.createParam("permission") .setDescription("Key of the permission to add.") .setRequired(true) - .setPossibleValues(new ImmutableSet.Builder().<String>addAll(GlobalPermissions.ALL).<String>addAll(ComponentPermissions.ALL).build()) + .setPossibleValues(ImmutableSet.<String>builder().addAll(GlobalPermissions.ALL).addAll(ComponentPermissions.ALL).build()) .setExampleValue("shareDashboard"); action.createParam("user") .setDescription("User login. Required if group is not set.") @@ -76,7 +75,7 @@ public class PermissionsWs implements WebService { action.createParam("permission") .setDescription("Key of the permission to remove.") .setRequired(true) - .setPossibleValues(new ImmutableSet.Builder().<String>addAll(GlobalPermissions.ALL).<String>addAll(ComponentPermissions.ALL).build()) + .setPossibleValues(ImmutableSet.<String>builder().addAll(GlobalPermissions.ALL).addAll(ComponentPermissions.ALL).build()) .setExampleValue("shareDashboard"); action.createParam("user") .setDescription("User login. Required if group is not set.") |