diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2019-03-27 17:47:49 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-04-01 20:21:05 +0200 |
commit | 6de7d6e73ce3a6253e4eea98fde59a8b959ca6e8 (patch) | |
tree | 49caf3cf0f1d9cbcecdbe0aab548bd4134b6e230 | |
parent | 692589aee8672fd1d94f5ff2fe34f4021199396e (diff) | |
download | sonarqube-6de7d6e73ce3a6253e4eea98fde59a8b959ca6e8.tar.gz sonarqube-6de7d6e73ce3a6253e4eea98fde59a8b959ca6e8.zip |
Delete useless String#format in measures/component_tree ws
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java b/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java index 85c3929b294..a7a817d33c9 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java @@ -111,8 +111,8 @@ import static org.sonar.server.measure.ws.SnapshotDtoToWsPeriod.snapshotToWsPeri import static org.sonar.server.ws.KeyExamples.KEY_BRANCH_EXAMPLE_001; import static org.sonar.server.ws.KeyExamples.KEY_PROJECT_EXAMPLE_001; import static org.sonar.server.ws.KeyExamples.KEY_PULL_REQUEST_EXAMPLE_001; -import static org.sonar.server.ws.WsParameterBuilder.QualifierParameterContext.newQualifierParameterContext; import static org.sonar.server.ws.WsParameterBuilder.createQualifiersParameter; +import static org.sonar.server.ws.WsParameterBuilder.QualifierParameterContext.newQualifierParameterContext; import static org.sonar.server.ws.WsUtils.checkRequest; import static org.sonar.server.ws.WsUtils.writeProtobuf; @@ -177,8 +177,8 @@ public class ComponentTreeAction implements MeasuresWsAction { public void define(WebService.NewController context) { WebService.NewAction action = context.createAction(ACTION_COMPONENT_TREE) .setDescription(format("Navigate through components based on the chosen strategy with specified measures. The %s or the %s parameter must be provided.<br>" + - "Requires the following permission: 'Browse' on the specified project.<br>" + - "When limiting search with the %s parameter, directories are not returned.", + "Requires the following permission: 'Browse' on the specified project.<br>" + + "When limiting search with the %s parameter, directories are not returned.", DEPRECATED_PARAM_BASE_COMPONENT_ID, PARAM_COMPONENT, Param.TEXT_QUERY)) .setResponseExample(getClass().getResource("component_tree-example.json")) .setSince("5.4") @@ -196,10 +196,10 @@ public class ComponentTreeAction implements MeasuresWsAction { .setExampleValue(NAME_SORT + "," + PATH_SORT); action.createParam(Param.TEXT_QUERY) - .setDescription(format("Limit search to: <ul>" + + .setDescription("Limit search to: <ul>" + "<li>component names that contain the supplied string</li>" + "<li>component keys that are exactly the same as the supplied string</li>" + - "</ul>")) + "</ul>") .setMinimumLength(QUERY_MINIMUM_LENGTH) .setExampleValue("FILE_NAM"); |