From: Teryk Bellahsene Date: Thu, 14 Jan 2016 14:12:25 +0000 (+0100) Subject: SONAR-7135 WS api/measures/component_tree update description base component is return... X-Git-Tag: 5.4-M6~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c660710f23ebfee872380e70d0dc4d24b6616c40;p=sonarqube.git SONAR-7135 WS api/measures/component_tree update description base component is returned in the response --- 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); }