Files
openide/java/java-tests/testData/refactoring/inlineMethod/InlineSingleImplementationGenericClass.java.after
2024-10-11 08:10:27 +00:00

18 lines
463 B
Plaintext

public class InlineSingleImplementation {
interface MyIface<T> {
void myUseGenericMethod(T t);
}
static class MyIfaceImpl<E extends CharSequence> implements MyIface<E> {
@Override
public void myUseGenericMethod(E e) {
E e1 = e;
System.out.println("Impl: " + e);
}
}
void test(MyIface<String> iface) {
String e1 = "hello";
System.out.println("Impl: " + "hello");
}
}