summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-01-14 15:12:25 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-01-14 18:53:45 +0100
commitc660710f23ebfee872380e70d0dc4d24b6616c40 (patch)
tree356f18a4cb71fe6fe962085cf09baed057bcfa16
parentb27328c9b3a1d94088a5ca2d52dee9edefc9788c (diff)
downloadsonarqube-c660710f23ebfee872380e70d0dc4d24b6616c40.tar.gz
sonarqube-c660710f23ebfee872380e70d0dc4d24b6616c40.zip
SONAR-7135 WS api/measures/component_tree update description base component is returned in the response
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java6
1 files changed, 3 insertions, 3 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 13e7de617ed..e13cc234ffc 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
@@ -109,11 +109,11 @@ public class ComponentTreeAction implements MeasuresWsAction {
.setExampleValue("FILE_NAM");
action.createParam(PARAM_BASE_COMPONENT_ID)
- .setDescription("Base component id. The search is based on this component. It is not included in the response.")
+ .setDescription("Base component id. The search is based on this component.")
.setExampleValue(UUID_EXAMPLE_02);
action.createParam(PARAM_BASE_COMPONENT_KEY)
- .setDescription("Base component key.The search is based on this component. It is not included in the response.")
+ .setDescription("Base component key.The search is based on this component.")
.setExampleValue("org.apache.hbas:hbase");
action.createParam(PARAM_METRIC_KEYS)
@@ -152,7 +152,7 @@ public class ComponentTreeAction implements MeasuresWsAction {
private ComponentTreeWsResponse doHandle(ComponentTreeWsRequest request) {
ComponentTreeData data = dataLoader.load(request);
- if (data.getComponents()==null) {
+ if (data.getComponents() == null) {
return emptyResponse(data.getBaseComponent(), request);
}