diff options
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java index 27cc69dbb3a..90781ba4bb2 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java @@ -22,7 +22,6 @@ package org.sonarqube.ws.client.projects; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; -import org.sonarqube.ws.Projects; import org.sonarqube.ws.Projects.CreateWsResponse; import org.sonarqube.ws.Projects.SearchMyProjectsWsResponse; import org.sonarqube.ws.Projects.SearchWsResponse; @@ -101,10 +100,10 @@ public class ProjectsService extends BaseService { * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/license_usage">Further information about this action online (including a response example)</a> * @since 9.4 */ - public String licenseUsage() { + public WsResponse licenseUsage() { GetRequest getRequest = new GetRequest(path("license_usage")) - .setMediaType(MediaTypes.CSV); - return call(getRequest).content(); + .setMediaType(MediaTypes.JSON); + return call(getRequest); } /** |