Did you really use instanceof there? That isn't right, surely? You catch a particular exception type. I am surprised the code verifying tool complained about retries and didn't say anything about instanceof. The bit about retries being 0 is also difficult to read (line 11).
Rajdeep Biswas wrote:. . . . . .
Dave Tolls wrote:To be honest, I think that code looks fine to me.
Dave Tolls wrote:This bit?
Liutauras Vilda wrote:
Rajdeep Biswas wrote:Ok, I am going to put things once again.