Skip to content

Commit

Permalink
[#noissue] Cleanup URLEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jan 3, 2022
1 parent 6210f88 commit 66c9c97
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.navercorp.pinpoint.web.filter;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
Expand Down Expand Up @@ -103,11 +102,8 @@ private String decode(String value) {
if (value == null) {
return null;
}
try {
return URLDecoder.decode(value, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException("UTF8 decodeFail. value:" + value);
}

return URLDecoder.decode(value, StandardCharsets.UTF_8);
}

private Filter<List<SpanBo>> makeFilterFromJson(String jsonFilterText) {
Expand Down

0 comments on commit 66c9c97

Please sign in to comment.