]> source.dussan.org Git - sonarqube.git/commitdiff
Fix qualify flaw 1242/head
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Mon, 12 Sep 2016 16:11:03 +0000 (18:11 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 13 Sep 2016 09:36:50 +0000 (11:36 +0200)
server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java
server/sonar-server/src/test/java/org/sonar/server/setting/ws/SetActionTest.java

index 0263760be91365e77a7fbf89101ada4e077730b5..957180725316bd43746002b32fde54424e645aca 100644 (file)
@@ -40,7 +40,6 @@ import org.sonar.api.PropertyType;
 import org.sonar.api.config.PropertyDefinition;
 import org.sonar.api.config.PropertyDefinitions;
 import org.sonar.api.config.PropertyFieldDefinition;
-import org.sonar.api.i18n.I18n;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -74,7 +73,6 @@ public class SetAction implements SettingsWsAction {
   private static final Collector<CharSequence, ?, String> COMMA_JOINER = Collectors.joining(",");
 
   private final PropertyDefinitions propertyDefinitions;
-  private final I18n i18n;
   private final DbClient dbClient;
   private final ComponentFinder componentFinder;
   private final UserSession userSession;
@@ -82,10 +80,9 @@ public class SetAction implements SettingsWsAction {
   private final SettingsChangeNotifier settingsChangeNotifier;
   private final SettingValidations validations;
 
-  public SetAction(PropertyDefinitions propertyDefinitions, I18n i18n, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession,
+  public SetAction(PropertyDefinitions propertyDefinitions, DbClient dbClient, ComponentFinder componentFinder, UserSession userSession,
     SettingsUpdater settingsUpdater, SettingsChangeNotifier settingsChangeNotifier, SettingValidations validations) {
     this.propertyDefinitions = propertyDefinitions;
-    this.i18n = i18n;
     this.dbClient = dbClient;
     this.componentFinder = componentFinder;
     this.userSession = userSession;
index e7eae206c3e04770bd788ca215e3bdb56865b606..ce7f1f2d649f0dc379689365b39d87d497070fe8 100644 (file)
@@ -92,7 +92,7 @@ public class SetActionTest {
   SettingsUpdater settingsUpdater = new SettingsUpdater(dbClient, definitions);
   SettingValidations validations = new SettingValidations(definitions, dbClient, i18n);
 
-  SetAction underTest = new SetAction(definitions, i18n, dbClient, componentFinder, userSession, settingsUpdater, settingsChangeNotifier, validations);
+  SetAction underTest = new SetAction(definitions, dbClient, componentFinder, userSession, settingsUpdater, settingsChangeNotifier, validations);
 
   WsActionTester ws = new WsActionTester(underTest);