liuruiyiyang commented on a change in pull request #38: Fix sonar by Yanzhe An
URL: https://github.com/apache/incubator-iotdb/pull/38#discussion_r253024348
##########
File path: iotdb-cli/src/main/java/org/apache/iotdb/cli/tool/ImportCsv.java
##########
@@ -146,7 +154,7 @@ private static void loadDataFromCSV(File file, int index) {
String[] strHeadInfo = header.split(",");
if (strHeadInfo.length <= 1) {
- System.out.println("[ERROR] The CSV file" + file.getName()
+ LOGGER.error("[ERROR] The CSV file" + file.getName()
Review comment:
format specifier should be used instead of string concatenation, compliant
solution:
LOGGER.error("[ERROR] The CSV file {} is illegal, please check first line",
file.getName());
----------------------------------------------------------------
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