mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
extract class: constructor params (IDEA-73788 )
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
public class Extracted {
|
||||
String myT = "";
|
||||
|
||||
public Extracted() {
|
||||
}
|
||||
|
||||
void bar() {
|
||||
System.out.println(myT);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
final Extracted extracted = new Extracted();
|
||||
|
||||
void bar(){
|
||||
extracted.bar();
|
||||
}
|
||||
|
||||
void foo() {
|
||||
extracted.bar();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
String myT = "";
|
||||
|
||||
void bar(){
|
||||
System.out.println(myT);
|
||||
}
|
||||
|
||||
void foo() {
|
||||
bar();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user