mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
introduce variable: allow introduction of expression from inside for loop if independent from loop vars (IDEA-162911)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
void foo(String[] input) {
|
||||
int temp = input.length;
|
||||
char[][] board = new char[temp][];
|
||||
for (int i = 0; i < temp; i++) {
|
||||
System.out.println(temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
void foo(String[] input) {
|
||||
char[][] board = new char[input.length][];
|
||||
for (int i = 0; i < input.length; i++) {
|
||||
System.out.println(<selection>input.length</selection>);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user