Skip to content

Commit

Permalink
Resolve Sonar Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Oct 21, 2020
1 parent 2c3f26e commit 6ed9925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor
implements MessageListenerContainer, ApplicationContextAware, BeanNameAware, DisposableBean,
ApplicationEventPublisherAware {

private static final int EXIT_99 = 99;

private static final String UNCHECKED = "unchecked";

static final int DEFAULT_FAILED_DECLARATION_RETRY_INTERVAL = 5000;
Expand Down Expand Up @@ -246,7 +248,7 @@ public abstract class AbstractMessageListenerContainer extends RabbitAccessor

private long consumeDelay;

private OOMHandler oOMHandler = error -> System.exit(99);
private OOMHandler oOMHandler = error -> System.exit(EXIT_99);

private volatile boolean lazyLoad;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ private void executeListenerInTransaction(Object data, long deliveryTag) {
});
}

private void callExecuteListener(Object data, long deliveryTag) {
private void callExecuteListener(Object data, long deliveryTag) { // NOSONAR (complex)
boolean channelLocallyTransacted = isChannelLocallyTransacted();
try {
executeListener(getChannel(), data);
Expand Down

0 comments on commit 6ed9925

Please sign in to comment.