mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
[java] add move all members to class fix
GitOrigin-RevId: f5ad44f993f2f386c9847dc57ddac86cb4cf45d2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
96dbed77fc
commit
31928210fc
@@ -0,0 +1,7 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
class A {
|
||||
|
||||
int field = 12;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
class A {
|
||||
|
||||
void foo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
class A {
|
||||
|
||||
static {
|
||||
System.out.println("initializer");
|
||||
}
|
||||
|
||||
int x = 21;
|
||||
String s = "asdsad";
|
||||
|
||||
void foo() {
|
||||
|
||||
}
|
||||
|
||||
void bar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
int field<caret> = 12;
|
||||
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
void foo<caret>() {
|
||||
|
||||
}
|
||||
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
// "Move members into class" "true-preview"
|
||||
|
||||
void foo<caret>() {
|
||||
|
||||
}
|
||||
|
||||
void bar<caret>() {
|
||||
|
||||
}
|
||||
|
||||
int x = 21;
|
||||
|
||||
String s = "asdsad";
|
||||
|
||||
static {
|
||||
System.out.println("initializer");
|
||||
}
|
||||
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user