diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java index 9222164c2d2c..f09a6528d6ee 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java @@ -107,7 +107,7 @@ private String getRequestUrl(HttpServletRequest request) { private Map> getRequestHeaders(HttpServletRequest request) { Enumeration keys = request.getHeaderNames(); if (keys == null) { - Collections.emptyMap(); + return Collections.emptyMap(); } Map> result = new HashMap>(); @@ -126,7 +126,7 @@ private Map> getRequestHeaders(HttpServletRequest request) private List getRequestHeaderValueList(HttpServletRequest request, String key) { Enumeration headerValues = request.getHeaders(key); if (headerValues == null) { - Collections.emptyList(); + return Collections.emptyList(); } List headerValueList = new ArrayList(); @@ -145,7 +145,7 @@ private List getRequestHeaderValueList(HttpServletRequest request, Strin private Map> getRequestParameters(HttpServletRequest request) { Enumeration keys = request.getParameterNames(); if (keys == null) { - Collections.emptyMap(); + return Collections.emptyMap(); } Map> result = new HashMap>();