Zhankun Tang created YARN-8975:
----------------------------------
Summary: Use predefined Charset object StandardCharsets.UTF_8
instead of String "UTF-8"
Key: YARN-8975
URL: https://issues.apache.org/jira/browse/YARN-8975
Project: Hadoop YARN
Issue Type: Improvement
Reporter: Zhankun Tang
Assignee: Zhankun Tang
{code:java}
Writer w = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");{code}
Could be refactored to this to improve a little bit performance due to avoid
string lookup:
{code:java}
Writer w = new OutputStreamWriter(new FileOutputStream(file),
StandardCharsets.UTF_8);{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]