From 547cf0c0b0eac939bc86dd209d06bde348778815 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Mon, 12 Sep 2016 18:11:03 +0200 Subject: [PATCH] Fix qualify flaw --- .../src/main/java/org/sonar/server/setting/ws/SetAction.java | 5 +---- .../test/java/org/sonar/server/setting/ws/SetActionTest.java | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java b/server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java index 0263760be91..95718072531 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java @@ -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 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; diff --git a/server/sonar-server/src/test/java/org/sonar/server/setting/ws/SetActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/setting/ws/SetActionTest.java index e7eae206c3e..ce7f1f2d649 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/setting/ws/SetActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/setting/ws/SetActionTest.java @@ -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); -- 2.39.5