Skip to content

Commit

Permalink
Fix Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Dec 5, 2019
1 parent 459b34c commit fde3b20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private ContainerTestUtils() {
* @throws ContainerTestUtilsException if the call to the container's
* getAssignedPartitions() method fails.
*/
public static void waitForAssignment(Object container, int partitions) {
public static void waitForAssignment(Object container, int partitions) { // NOSONAR complexity
if (container.getClass().getSimpleName().contains("KafkaMessageListenerContainer")) {
waitForSingleContainerAssignment(container, partitions);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,10 +1558,8 @@ private ConsumerRecord<K, V> checkEarlyIntercept(ConsumerRecord<K, V> nextArg) {
ConsumerRecord<K, V> next = nextArg;
if (this.earlyRecordInterceptor != null) {
next = this.earlyRecordInterceptor.intercept(next);
if (next == null) {
if (this.logger.isDebugEnabled()) {
this.logger.debug("RecordInterceptor returned null, skipping: " + next);
}
if (next == null && this.logger.isDebugEnabled()) {
this.logger.debug("RecordInterceptor returned null, skipping: " + nextArg);
}
}
return next;
Expand Down

0 comments on commit fde3b20

Please sign in to comment.