You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/05/28 13:12:13 UTC

[GitHub] [incubator-druid] leventov commented on a change in pull request #7738: Fix some problems reported by PVS-Studio

leventov commented on a change in pull request #7738: Fix some problems reported by PVS-Studio
URL: https://github.com/apache/incubator-druid/pull/7738#discussion_r288095538
 
 

 ##########
 File path: extensions-contrib/kafka-eight-simpleConsumer/src/main/java/org/apache/druid/firehose/kafka/KafkaSimpleConsumer.java
 ##########
 @@ -274,7 +272,7 @@ private long getOffset(boolean earliest) throws InterruptedException
       }
     }
 
-    return response != null ? filterAndDecode(response.messageSet(topic, partitionId), offset) : EMPTY_MSGS;
+    return filterAndDecode(response.messageSet(topic, partitionId), offset);
 
 Review comment:
   No, it's impossible. Open this class in IntelliJ - its data flow analysis identifies that the condition is always true as well.
   
   Related to #7780.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org