wujysh commented on a change in pull request #35: Fix sonar tianyu
URL: https://github.com/apache/incubator-iotdb/pull/35#discussion_r251740969
##########
File path: iotdb/src/main/java/org/apache/iotdb/db/metadata/MGraph.java
##########
@@ -46,7 +47,7 @@ public MGraph(String mtreeName) {
* Add a {@code PTree} to current {@code MGraph}.
*/
public void addAPTree(String ptreeRootName) throws
MetadataArgsErrorException {
- if (ptreeRootName.toLowerCase().equals("root")) {
+ if ("root".equalsIgnoreCase(ptreeRootName)) {
Review comment:
Use `MetadataConstant.ROOT` instead of "root".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services