mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
20 lines
355 B
Java
20 lines
355 B
Java
// "Create Method 'foo'" "true"
|
|
interface Comparable<T> {
|
|
}
|
|
|
|
class R implements Comparable<R> {
|
|
|
|
}
|
|
|
|
class A1<T> {
|
|
public T foo() {
|
|
<selection>return null; //To change body of created methods use File | Settings | File Templates.<caret></selection>
|
|
}
|
|
}
|
|
|
|
class B1 {
|
|
A1<R> a;
|
|
void foo (Comparable<R> c) {
|
|
c = a.foo();
|
|
}
|
|
} |