From 9f7a5068bb26f2760332c6e0bacec424e2edd47a Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 18 Nov 2021 09:08:40 -0600 Subject: Improve code quality --- .../src/main/java/org/sonar/server/ws/ServletRequest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/sonar-webserver-ws') diff --git a/server/sonar-webserver-ws/src/main/java/org/sonar/server/ws/ServletRequest.java b/server/sonar-webserver-ws/src/main/java/org/sonar/server/ws/ServletRequest.java index 232dccd3ce1..b24609ed5dd 100644 --- a/server/sonar-webserver-ws/src/main/java/org/sonar/server/ws/ServletRequest.java +++ b/server/sonar-webserver-ws/src/main/java/org/sonar/server/ws/ServletRequest.java @@ -43,14 +43,13 @@ import static org.apache.commons.lang.StringUtils.substringAfterLast; import static org.apache.tomcat.util.http.fileupload.FileUploadBase.MULTIPART; public class ServletRequest extends ValidatingRequest { - - private final HttpServletRequest source; - static final Map SUPPORTED_MEDIA_TYPES_BY_URL_SUFFIX = ImmutableMap.of( "json", MediaTypes.JSON, "protobuf", MediaTypes.PROTOBUF, "text", MediaTypes.TXT); + private final HttpServletRequest source; + public ServletRequest(HttpServletRequest source) { this.source = source; } -- cgit v1.2.3