From 1dfb0dffa770b324711e1a95fe814226e1220306 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Thu, 2 Jun 2022 14:23:15 +0200 Subject: SONAR-16423 - Project license API changes --- .../java/org/sonarqube/ws/client/projects/ProjectsService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sonar-ws/src') 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 Further information about this action online (including a response example) * @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); } /** -- cgit v1.2.3