mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
java: add more explanation in inspection description
GitOrigin-RevId: 22360ea2fc3c167089003b6a9794b4fd09be3768
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3927883f0f
commit
def643195d
@@ -2,8 +2,9 @@
|
||||
<body>
|
||||
<p>
|
||||
Reports <code>while</code> loops that could be more effectively written as <code>do-while</code> loops.
|
||||
The focus is on cases where the entire body of the <code>while</code> loop is executed before the condition is checked,
|
||||
leading to potential redundancy in code execution.
|
||||
There are <code>while</code> loops where the code just before the loop is identical to the code in the body of the loop.
|
||||
Replacing with a <code>do-while</code> loop removes the duplicated code.
|
||||
For <code>while</code> loops without such duplicated code, the quick fix is offered in the editor as well, but without highlighting.
|
||||
</p>
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
|
||||
Reference in New Issue
Block a user