Skip to content

Commit fbdeb32

Browse files
committed
[cleanup] Use StandardCharsets
1 parent 622c30a commit fbdeb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/zendesk/client/v2/Zendesk.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
import java.io.IOException;
7777
import java.io.UnsupportedEncodingException;
7878
import java.net.URLEncoder;
79-
import java.nio.charset.Charset;
79+
import java.nio.charset.StandardCharsets;
8080
import java.util.ArrayList;
8181
import java.util.Arrays;
8282
import java.util.Collections;
@@ -628,7 +628,7 @@ public ArticleAttachments createUploadArticle(long articleId, File file, boolean
628628
builder.addBodyPart(new StringPart("inline", "true"));
629629

630630
builder.addBodyPart(
631-
new FilePart("file", file, "application/octet-stream", Charset.forName("UTF-8"), file.getName()));
631+
new FilePart("file", file, "application/octet-stream", StandardCharsets.UTF_8, file.getName()));
632632
final Request req = builder.build();
633633
return complete(submit(req, handle(ArticleAttachments.class, "article_attachment")));
634634
}

0 commit comments

Comments
 (0)