You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "朱天赐 (JIRA)" <ji...@apache.org> on 2019/07/17 11:14:00 UTC

[jira] [Created] (IOTDB-142) Change String literal "UTF-8" into StandardCharsets.UTF_8

朱天赐 created IOTDB-142:
-------------------------

             Summary: 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: 朱天赐


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)