summaryrefslogtreecommitdiff
path: root/plugins/typeMigration/testData/refactoring/changeTypeSignature/TypeHierarchy1.java
blob: 5396a7c59422be416b1dd2e4c8239e7513872c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
abstract class A<E> {
  public abstract E foo();
}

abstract class B<T> extends A<T> {
}

public class C extends B<S<caret>tring> {
  public String foo() {
    return null;
  }

  void bar() {
    if (foo() == null) {
      //do smth
    }
    System.out.println(foo());
  }
}