jixuan1989 commented on a change in pull request #31: Fix sonar
URL: https://github.com/apache/incubator-iotdb/pull/31#discussion_r250988686
 
 

 ##########
 File path: 
iotdb/src/test/java/org/apache/iotdb/db/postback/sender/FileManagerTest.java
 ##########
 @@ -368,7 +364,7 @@ public void testGetSendingFileList() throws IOException {
 
   private boolean isEmpty(Map<String, Set<String>> sendingFileList) {
     for (Entry<String, Set<String>> entry : sendingFileList.entrySet()) {
-      if (entry.getValue().size() != 0) {
+      if (entry.getValue().isEmpty()) {
 
 Review comment:
   the correct one is: if(!entry.getValue().isEmpty())

----------------------------------------------------------------
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

Reply via email to