SOLR-14209: specify charset via String for Java 8.

This commit is contained in:
Mikhail Khludnev 2020-02-09 16:38:48 +03:00
parent e6701680f4
commit 07de70ba62
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ public final class ZookeeperInfoHandler extends RequestHandlerBase {
json.writeString("a_attr");
json.writeNameSeparator();
json.startObject();
String href = "admin/zookeeper?detail=true&path=" + URLEncoder.encode(path, StandardCharsets.UTF_8);
String href = "admin/zookeeper?detail=true&path=" + URLEncoder.encode(path, "UTF-8");
writeKeyValue(json, "href", href, true);
json.endObject();