This commit is contained in:
Dmitry Jemerov
2009-09-10 21:54:38 +04:00
parent 9f4d10da95
commit 7980717db9
17 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
class Test {
private class <caret>A {
private B b = new B();
private class B {
}
}
}

View File

@@ -0,0 +1,11 @@
class Test {
private static class A {
private B b = new B();
public A() {
}
private class B {
}
}
}

View File

@@ -0,0 +1,16 @@
class Test18 {
String str;
class <caret>A {
boolean flag;
public A(boolean flag) {
this.flag = flag;
}
void foo() {
System.out.println("str = " + str);
}
}
}

View File

@@ -0,0 +1,18 @@
class Test18 {
String str;
static class A {
boolean flag;
private Test18 anObject;
public A(Test18 anObject, boolean flag) {
this.flag = flag;
this.anObject = anObject;
}
void foo() {
System.out.println("str = " + anObject.str);
}
}
}

View File

@@ -0,0 +1,15 @@
class Test8 {
void bar() {
}
class <caret>B {
int c;
void foo() {
c = 10;
bar();
}
}
}

View File

@@ -0,0 +1,20 @@
class Test8 {
void bar() {
}
static class B {
int c;
private Test8 anObject;
public B(Test8 anObject) {
this.anObject = anObject;
}
void foo() {
c = 10;
anObject.bar();
}
}
}

View File

@@ -0,0 +1,13 @@
class T {
Object myObject;
void test() {
new MyRunnable().run();
}
private class <caret>MyRunnable implements Runnable {
public void run() {
myObject.toString();
}
}
}

View File

@@ -0,0 +1,19 @@
class T {
Object myObject;
void test() {
new MyRunnable(myObject).run();
}
private static class <caret>MyRunnable implements Runnable {
private Object myObject;
public MyRunnable(Object object) {
this.myObject = object;
}
public void run() {
myObject.toString();
}
}
}

View File

@@ -0,0 +1,13 @@
public class YoYo {
class <caret>YoYoYo {
void foo (){
YoYo yoYoy = YoYo.this;
}
}
class Other {
{
new YoYoYo();
}
}
}

View File

@@ -0,0 +1,19 @@
public class YoYo {
static class YoYoYo {
private YoYo anObject;
public YoYoYo(YoYo anObject) {
this.anObject = anObject;
}
void foo (){
YoYo yoYoy = anObject;
}
}
class Other {
{
new YoYoYo(YoYo.this);
}
}
}

View File

@@ -0,0 +1,7 @@
public class A {
public void test(Inner i) {
}
private class <caret>Inner {
}
}

View File

@@ -0,0 +1,9 @@
public class A {
public void test(Inner i) {
}
private static class <caret>Inner {
public Inner() {
}
}
}

View File

@@ -0,0 +1,14 @@
public class YoYo {
int y;
class <caret>YoYoYo {
void foo (){
YoYo yoYoy = YoYo.this;
int t = y;
int t1 = yoYoy.y;
new Other();
}
}
class Other {}
}

View File

@@ -0,0 +1,11 @@
public class YoYo {
int y;
class <caret>YoYoYo {
void foo (){
YoYo yoYoy = YoYo.this;
int t = y;
int t1 = yoYoy.y;
}
}
}

View File

@@ -0,0 +1,19 @@
public class YoYo {
int y;
static class YoYoYo {
private YoYo anObject;
private int y;
public YoYoYo(YoYo anObject, int y) {
this.anObject = anObject;
this.y = y;
}
void foo (){
YoYo yoYoy = anObject;
int t = y;
int t1 = yoYoy.y;
}
}
}

View File

@@ -0,0 +1,20 @@
public class YoYo {
int y;
static class YoYoYo {
private YoYo anObject;
public YoYoYo(YoYo anObject) {
this.anObject = anObject;
}
void foo (){
YoYo yoYoy = anObject;
int t = anObject.y;
int t1 = yoYoy.y;
anObject.new Other();
}
}
class Other {}
}