[
https://issues.apache.org/jira/browse/MAPREDUCE-6855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894615#comment-15894615
]
Sangjin Lee commented on MAPREDUCE-6855:
----------------------------------------
It would be great if we can catch things like this with a findbugs rule. Do you
know if that is straightforward?
> 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
> 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: [email protected]
For additional commands, e-mail: [email protected]