[
https://issues.apache.org/jira/browse/IOTDB-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
朱天赐 closed IOTDB-142.
---------------------
Resolution: Fixed
> Change String literal "UTF-8" into StandardCharsets.UTF_8
> ---------------------------------------------------------
>
> Key: IOTDB-142
> URL: https://issues.apache.org/jira/browse/IOTDB-142
> Project: Apache IoTDB
> Issue Type: Improvement
> Reporter: 朱天赐
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> methods and constructors where constant charset String literal is used (like
> "UTF-8") which could be replaced with a predefined Charset object like
> StandardCharsets.UTF_8. This may work a little bit faster because charset
> lookup becomes unnecessary. Also catching UnsupportedEncodingException may
> become unnecessary as well. In this case, the catch block will be removed
> automatically.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)