mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
public class Extracted {
|
||||
private int myT;
|
||||
|
||||
public int getMyT() {
|
||||
return myT;
|
||||
}
|
||||
|
||||
public void setMyT(int myT) {
|
||||
this.myT = myT;
|
||||
}
|
||||
|
||||
public Extracted() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
final Extracted extracted = new Extracted();
|
||||
|
||||
{
|
||||
extracted.setMyT(0);
|
||||
}
|
||||
|
||||
void bar(){
|
||||
int i = extracted.getMyT();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
int myT;
|
||||
{
|
||||
myT = 0;
|
||||
}
|
||||
|
||||
void bar(){
|
||||
int i = myT;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user