aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ru
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-12 11:28:12 +0300
committerGravatar Vitaly Takmazov2019-12-12 11:28:12 +0300
commitf462d7335567960978e16c5e042c99b54daa94b6 (patch)
treef298f3ac50ed64d0292bba0a8a6e148e8daa434c /src/main/java/ru
parentc0ae480bb5c07ea7b9e1b42df428e2857b0d4816 (diff)
Cleanup IDEA code issues
Diffstat (limited to 'src/main/java/ru')
-rw-r--r--src/main/java/ru/sape/SapeConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/ru/sape/SapeConnection.java b/src/main/java/ru/sape/SapeConnection.java
index a15658fa..ee5a5e5c 100644
--- a/src/main/java/ru/sape/SapeConnection.java
+++ b/src/main/java/ru/sape/SapeConnection.java
@@ -11,6 +11,7 @@ import java.io.Reader;
import java.io.StringWriter;
import java.net.HttpURLConnection;
import java.net.URL;
+import java.nio.charset.StandardCharsets;
import java.util.*;
public class SapeConnection {
@@ -48,7 +49,7 @@ public class SapeConnection {
connection.setRequestMethod("GET");
connection.connect();
- r = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
+ r = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8));
StringWriter sw = new StringWriter();