Skip to content

Commit

Permalink
pinpoint-apm#535 Shows detail error message when web controller meets…
Browse files Browse the repository at this point in the history
… any exception.

fix method with missing return statement.
  • Loading branch information
koo-taejin committed Jun 9, 2015
1 parent cef0643 commit bbf4695
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private String getRequestUrl(HttpServletRequest request) {
private Map<String, List<String>> getRequestHeaders(HttpServletRequest request) {
Enumeration keys = request.getHeaderNames();
if (keys == null) {
Collections.emptyMap();
return Collections.emptyMap();
}

Map<String, List<String>> result = new HashMap<String, List<String>>();
Expand All @@ -126,7 +126,7 @@ private Map<String, List<String>> getRequestHeaders(HttpServletRequest request)
private List<String> getRequestHeaderValueList(HttpServletRequest request, String key) {
Enumeration headerValues = request.getHeaders(key);
if (headerValues == null) {
Collections.emptyList();
return Collections.emptyList();
}

List<String> headerValueList = new ArrayList<String>();
Expand All @@ -145,7 +145,7 @@ private List<String> getRequestHeaderValueList(HttpServletRequest request, Strin
private Map<String, List<String>> getRequestParameters(HttpServletRequest request) {
Enumeration keys = request.getParameterNames();
if (keys == null) {
Collections.emptyMap();
return Collections.emptyMap();
}

Map<String, List<String>> result = new HashMap<String, List<String>>();
Expand Down

0 comments on commit bbf4695

Please # to comment.