A continue statement only re-runs the loop if the loop condition is true. Therefore using continue in a loop with a constant false condition will never cause the loop body to be re-run, which is misleading.

Replace the continue statement with a break statement if the intent is to break from the loop.

  • Java Language Specification: 14.13 The do Statement.