more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 10:48:17 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// "Use existing implementation of 'm'" "true"
interface I<T> {
void m(T param);
}
class A implements I<Object> {
public void m(Object param) {
System.out.println(param.toString());
}
}
class B implements I<String> {
public void m(String param) {
<selection>System.out.println(param.toString());</selection>
}
}

View File

@@ -0,0 +1,16 @@
// "Use existing implementation of 'm'" "true"
interface I {
void m();
}
class A implements I {
public void m() {
System.out.println("code");
}
}
class B implements I {
public void m() {
<selection>System.out.println("code");</selection>
}
}

View File

@@ -0,0 +1,19 @@
// "Use existing implementation of 'm'" "true"
interface I<T> {
void m(T param);
}
class A implements I<Object> {
public void m(Object param) {
System.out.println(param.toString());
}
}
class B implements I<String> {
public void m(String param) {
<selection>System.out.println(param.toString());</selection>
}
}
class C extends B {
}

View File

@@ -0,0 +1,18 @@
// "Use existing implementation of 'm'" "true"
interface I {
void m();
}
class A implements I {
public static final String TEXT = "code";
public void m() {
System.out.println(TEXT);
}
}
class B implements I {
public void m() {
<selection>System.out.println(A.TEXT);</selection>
}
}

View File

@@ -0,0 +1,13 @@
// "Use existing implementation of 'm'" "true"
interface I<T> {
void <caret>m(T param);
}
class A implements I<Object> {
public void m(Object param) {
System.out.println(param.toString());
}
}
class B implements I<String> {
}

View File

@@ -0,0 +1,13 @@
// "Use existing implementation of 'm'" "true"
interface I {
void <caret>m();
}
class A implements I {
public void m() {
System.out.println("code");
}
}
class B implements I {
}

View File

@@ -0,0 +1,16 @@
// "Use existing implementation of 'm'" "true"
interface I<T> {
void <caret>m(T param);
}
class A implements I<Object> {
public void m(Object param) {
System.out.println(param.toString());
}
}
class B implements I<String> {
}
class C extends B {
}

View File

@@ -0,0 +1,15 @@
// "Use existing implementation of 'm'" "true"
interface I {
void <caret>m();
}
class A implements I {
public static final String TEXT = "code";
public void m() {
System.out.println(TEXT);
}
}
class B implements I {
}