hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-6855) Specify charset when create String in CredentialsTestJob
Date Mon, 06 Mar 2017 07:23:33 GMT

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

Akira Ajisaka commented on MAPREDUCE-6855:
------------------------------------------

bq. Do you think we need to detect this type of bug even in test code? I'm wondering it might
be overkill.
Agreed that it might be overkill. Thank you for taking this issue on.

> Specify charset when create String in CredentialsTestJob
> --------------------------------------------------------
>
>                 Key: MAPREDUCE-6855
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6855
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Akira Ajisaka
>            Assignee: Kai Sasaki
>            Priority: Minor
>              Labels: newbie
>
> {code}
>       String secretValueStr = new String (secretValue);
> {code}
> should be
> {code}
>       String secretValueStr = new String(secretValue, StandardCharsets.UTF_8);
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org


Mime
View raw message