commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-145) Base64.encodeBase64String could better use newStringUsAscii
Date Tue, 28 Mar 2017 15:04:41 GMT

    [ https://issues.apache.org/jira/browse/CODEC-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945332#comment-15945332
] 

Sebb commented on CODEC-145:
----------------------------

Ditto for encodeBase64URLSafeString



> Base64.encodeBase64String could better use newStringUsAscii
> -----------------------------------------------------------
>
>                 Key: CODEC-145
>                 URL: https://issues.apache.org/jira/browse/CODEC-145
>             Project: Commons Codec
>          Issue Type: Bug
>            Reporter: Jesse Glick
>            Priority: Minor
>              Labels: base64
>
> {{org.apache.commons.codec.binary.Base64.encodeBase64String}} currently uses {{StringUtils.newStringUtf8}}.
But the text should be in fact be in ASCII, so {{newStringUsAscii}} would be clearer and perhaps
faster.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message