Skip to content

Commit cbb8a75

Browse files
author
Matias Melograno
committed
used standardcharsets
1 parent 49fe317 commit cbb8a75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/src/main/java/io/split/client/HttpSegmentChangeFetcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import java.net.URI;
1818
import java.net.URISyntaxException;
19+
import java.nio.charset.StandardCharsets;
1920

2021
import static com.google.common.base.Preconditions.checkNotNull;
2122

@@ -73,7 +74,7 @@ public SegmentChange fetch(String segmentName, long since) {
7374

7475

7576

76-
String json = EntityUtils.toString(response.getEntity(), "UTF-8");
77+
String json = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8);
7778
if (_log.isDebugEnabled()) {
7879
_log.debug("Received json: " + json);
7980
}

client/src/main/java/io/split/client/HttpSplitChangeFetcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import java.net.URI;
1818
import java.net.URISyntaxException;
19+
import java.nio.charset.StandardCharsets;
1920

2021
import static com.google.common.base.Preconditions.checkNotNull;
2122

@@ -68,7 +69,7 @@ public SplitChange fetch(long since) {
6869
}
6970

7071

71-
String json = EntityUtils.toString(response.getEntity(), "UTF-8");
72+
String json = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8);
7273
if (_log.isDebugEnabled()) {
7374
_log.debug("Received json: " + json);
7475
}

0 commit comments

Comments
 (0)