sunjincheng created IOTDB-1166:
----------------------------------

             Summary: Remove redundant toString() calls
                 Key: IOTDB-1166
                 URL: https://issues.apache.org/jira/browse/IOTDB-1166
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Engine
            Reporter: sunjincheng
            Assignee: sunjincheng


Remove redundant toString() calls,e.g,:

`"Unknown operator: " + operatorType.toString()`-> `Unknown operator: " + 
operatorType`

Any calls to toString() used in string concatenations and as arguments to the 
print() and println() methods of java.io.PrintWriter and java.io.PrintStream, 
the append() method of java.lang.StringBuilder and java.lang.StringBuffer or 
the trace(), debug(), info(), warn() and error() methods of org.slf4j.Logger. 
In these cases the conversion to string will be handled by the underlying 
library methods and an explicit call to toString() is no needed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to