]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8575 Add deprecatedKey on component parameter
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Jan 2017 09:52:01 +0000 (10:52 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 13 Jan 2017 09:52:34 +0000 (10:52 +0100)
Previously, the 'component' parameter was named 'componentKey'

server/sonar-server/src/main/java/org/sonar/server/setting/ws/ResetAction.java
server/sonar-server/src/main/java/org/sonar/server/setting/ws/SetAction.java

index 360645a0ee0b5a9c045404fce16d9f802594bd16..d5bb53bbd4bd1833de84ae6b192bd5409946881b 100644 (file)
@@ -84,6 +84,7 @@ public class ResetAction implements SettingsWsAction {
       .setRequired(true);
     action.createParam(PARAM_COMPONENT)
       .setDescription("Component key")
+      .setDeprecatedKey("componentKey")
       .setExampleValue(KEY_PROJECT_EXAMPLE_001);
   }
 
index 680f7ca30513b1dabb68e3bd0533cbad4db8d1ea..72c86c5a6a2f3aaad8bc36f0454a5b03e0030f6b 100644 (file)
@@ -124,6 +124,7 @@ public class SetAction implements SettingsWsAction {
 
     action.createParam(PARAM_COMPONENT)
       .setDescription("Component key")
+      .setDeprecatedKey("componentKey")
       .setExampleValue(KEY_PROJECT_EXAMPLE_001);
   }