mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
move OverrideImplementTest to community
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
A() { }
|
||||
A(String s) { }
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
B() { super(); }
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
@interface ff{
|
||||
String f() default "";
|
||||
}
|
||||
class d implements ff {
|
||||
public String f() {
|
||||
<caret><selection>return null; //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class Gen {
|
||||
protected Gen clone() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class X2 extends Gen {
|
||||
@Override
|
||||
protected Gen clone() {
|
||||
<caret><selection>return super.clone(); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class S implements Runnable {
|
||||
public void run() {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
public interface A {
|
||||
void foo(String pppppppppppp1, String pppppppppppp2,String pppppppppppp3,String pppppppppppp4,String pppppppppppp5,String pppppppppppp6,String pppppppppppp7,String pppppppppppp8);
|
||||
}
|
||||
|
||||
abstract class B implements A{
|
||||
public void foo(final String pppppppppppp1,
|
||||
final String pppppppppppp2,
|
||||
final String pppppppppppp3,
|
||||
final String pppppppppppp4,
|
||||
final String pppppppppppp5,
|
||||
final String pppppppppppp6,
|
||||
final String pppppppppppp7,
|
||||
final String pppppppppppp8) {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
public interface A {
|
||||
void foo(String p1, String p2,String p3,String p4,String p5,String p6,String p7);
|
||||
}
|
||||
|
||||
abstract class B implements A{
|
||||
public void foo(String p1,
|
||||
String p2,
|
||||
String p3,
|
||||
String p4,
|
||||
String p5,
|
||||
String p6,
|
||||
String p7) {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
abstract class Base {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
class Sub extends Base {
|
||||
int it;
|
||||
|
||||
@Override
|
||||
void foo() {
|
||||
<caret><selection>super.foo(); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
abstract class IX {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
class XXC extends IX {
|
||||
@Override
|
||||
void foo() {
|
||||
<caret><selection>super.foo(); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
abstract class IX<T> {
|
||||
abstract <S extends T> void foo(){}
|
||||
}
|
||||
|
||||
class XXC<S> extends IX<Throwable> {
|
||||
@Override
|
||||
<S extends Throwable> void foo() {
|
||||
<caret><selection>//To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class f{
|
||||
@org.testng.annotations.BeforeMethod
|
||||
String foo() {return "";}
|
||||
}
|
||||
|
||||
class ff extends f {
|
||||
@Override
|
||||
String foo() {
|
||||
<selection>return super.foo(); //To change body of overridden methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
interface Function<S, R> {
|
||||
R fun(S s);
|
||||
}
|
||||
|
||||
class Bar extends Function<String, ?>{
|
||||
public Object fun(String s) {
|
||||
<selection>return null; //To change body of implemented methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
@interface ff{
|
||||
String f() default "";
|
||||
}
|
||||
class d implements ff {
|
||||
<caret>
|
||||
public Class<? extends Annotation> annotationType() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Gen {
|
||||
protected Gen clone() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class X2 extends Gen {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class S <caret>implements Runnable
|
||||
@@ -0,0 +1,7 @@
|
||||
public interface A {
|
||||
void foo(String pppppppppppp1, String pppppppppppp2,String pppppppppppp3,String pppppppppppp4,String pppppppppppp5,String pppppppppppp6,String pppppppppppp7,String pppppppppppp8);
|
||||
}
|
||||
|
||||
abstract class B implements A{
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public interface A {
|
||||
void foo(String p1, String p2,String p3,String p4,String p5,String p6,String p7);
|
||||
}
|
||||
|
||||
abstract class B implements A{
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
abstract class Base {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
class Sub extends Base {
|
||||
int it;<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
abstract class IX {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
class XXC extends IX {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
abstract class IX<T> {
|
||||
abstract <S extends T> void foo(){}
|
||||
}
|
||||
|
||||
class XXC<S> extends IX<Throwable> {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class f{
|
||||
@org.testng.annotations.BeforeMethod
|
||||
String foo() {return "";}
|
||||
}
|
||||
|
||||
class ff extends f {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
interface Function<S, R> {
|
||||
R fun(S s);
|
||||
}
|
||||
|
||||
class Bar extends Function<String, ?>{
|
||||
<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user