nikhil2050
nikhil2050

Reputation: 35

Avoiding Sonarlint error efficiently in Java for infinite while loop

I have a RabbitMQ Consumer Java application that keeps on checking for the new message on the queue with a while(true) loop.

Is there any solution so I can avoid following Sonalint Blocker bug without suppressing the error:

Loops should not be infinite

Reference : https://rules.sonarsource.com/java/RSPEC-2189

Upvotes: 0

Views: 258

Answers (0)

Related Questions