align to checkstyle

pull/251/head
cheese8 3 years ago
parent 4d14344b70
commit de3b6d8745

@ -75,8 +75,7 @@ public class PolarisFeignLoadBalancer extends FeignLoadBalancer {
Map<String, String> labelHeaderValuesMap = new HashMap<>(); Map<String, String> labelHeaderValuesMap = new HashMap<>();
try { try {
String labelHeaderValuesContent = labelHeaderValues.stream().findFirst().get(); String labelHeaderValuesContent = labelHeaderValues.stream().findFirst().get();
labelHeaderValuesMap.putAll(JacksonUtils.deserialize2Map(URLDecoder.decode(labelHeaderValuesContent, labelHeaderValuesMap.putAll(JacksonUtils.deserialize2Map(URLDecoder.decode(labelHeaderValuesContent, StandardCharsets.UTF_8.name())));
StandardCharsets.UTF_8.name())));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
throw new RuntimeException("unsupported charset exception " + StandardCharsets.UTF_8.name()); throw new RuntimeException("unsupported charset exception " + StandardCharsets.UTF_8.name());
} }

Loading…
Cancel
Save