aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-symbol-solver-testing/src/test/resources/TypeParamOnReturnType.java.txt
blob: 2140b52ea01f8e3f30a6136cf8dde0bca4dfb808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public interface GenericVisitor<R, A> {

}

class Node {
    public abstract <R, A> R accept(GenericVisitor<R, A> v, A arg);
}

class TypeParamOnReturnType implements GenericVisitor<Boolean, Node> {

	private <T extends Node> boolean nodeEquals(final T n1, final T n2) {
		return n1.accept(this, n2).booleanValue();
	}

}