aboutsummaryrefslogtreecommitdiff
path: root/juick-crosspost/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-crosspost/src/main/java')
-rw-r--r--juick-crosspost/src/main/java/com/juick/components/Crosspost.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java
index c84b50f64..6daa8ddd9 100644
--- a/juick-crosspost/src/main/java/com/juick/components/Crosspost.java
+++ b/juick-crosspost/src/main/java/com/juick/components/Crosspost.java
@@ -19,7 +19,6 @@ package com.juick.components;
import com.juick.Tag;
import com.juick.service.CrosspostService;
-import org.apache.commons.codec.Charsets;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
@@ -44,6 +43,7 @@ import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLEncoder;
+import java.nio.charset.StandardCharsets;
import java.security.Key;
import java.util.UUID;
@@ -156,7 +156,7 @@ public class Crosspost implements AutoCloseable {
wr.write(body);
wr.close();
- ret = StringUtils.isNotEmpty(IOUtils.toString(conn.getInputStream(), Charsets.UTF_8));
+ ret = StringUtils.isNotEmpty(IOUtils.toString(conn.getInputStream(), StandardCharsets.UTF_8));
conn.disconnect();
} catch (Exception e) {
@@ -193,7 +193,7 @@ public class Crosspost implements AutoCloseable {
wr.write(body);
wr.close();
- ret = StringUtils.isNotEmpty(IOUtils.toString(conn.getInputStream(), Charsets.UTF_8));
+ ret = StringUtils.isNotEmpty(IOUtils.toString(conn.getInputStream(), StandardCharsets.UTF_8));
conn.disconnect();
} catch (Exception e) {
@@ -248,7 +248,7 @@ public class Crosspost implements AutoCloseable {
wr.write("status=" + status);
wr.close();
- ret = IOUtils.toString(conn.getInputStream(), Charsets.UTF_8) != null;
+ ret = IOUtils.toString(conn.getInputStream(), StandardCharsets.UTF_8) != null;
conn.disconnect();
} catch (Exception e) {