From: Teryk Bellahsene Date: Mon, 12 Sep 2016 16:11:03 +0000 (+0200) Subject: Fix qualify flaw X-Git-Tag: 6.1-RC1~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1242%2Fhead;p=sonarqube.git Fix qualify flaw --- 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);