Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/genericCreateFromUsage/after4.java
2010-06-25 12:46:40 +04:00

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();
}
}