diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-11-18 09:08:40 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-18 20:03:33 +0000 |
commit | 9f7a5068bb26f2760332c6e0bacec424e2edd47a (patch) | |
tree | 51ff128c6f77d1d15db5abe7960a90c74ee3d783 /server/sonar-webserver-ws | |
parent | eda9dff59cc60209b15b69ef4aa4c18885c0c744 (diff) | |
download | sonarqube-9f7a5068bb26f2760332c6e0bacec424e2edd47a.tar.gz sonarqube-9f7a5068bb26f2760332c6e0bacec424e2edd47a.zip |
Improve code quality
Diffstat (limited to 'server/sonar-webserver-ws')
-rw-r--r-- | server/sonar-webserver-ws/src/main/java/org/sonar/server/ws/ServletRequest.java | 5 |
1 files changed, 2 insertions, 3 deletions
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<String, String> 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; } |