mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: Edited documentation for "Unwrap 'else' branch" intention (IDEA-165428)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
void f(boolean b) {
|
||||
if (b) {
|
||||
System.out.println("When true");
|
||||
public class X {
|
||||
void f(boolean b) {
|
||||
if (b) {
|
||||
System.out.println("When true");
|
||||
}
|
||||
System.out.println("Otherwise");
|
||||
}
|
||||
System.out.println("Otherwise");
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
void f(boolean b) {
|
||||
if (b) {
|
||||
System.out.println("When true");
|
||||
} <spot>else</spot> {
|
||||
System.out.println("Otherwise");
|
||||
public class X {
|
||||
void f(boolean b) {
|
||||
if (b) {
|
||||
System.out.println("When true");
|
||||
} <spot>else</spot> {
|
||||
System.out.println("Otherwise");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention moves the code of the <b>else</b> branch after the <b>if</b> statement.
|
||||
This intention moves the code of the <b>else</b> branch after the <b>if</b> statement.<br>
|
||||
Note that it changes the code semantics.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user