mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
more java tests moved to community
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
@@ -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>
|
||||
}
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user