in bval-jsr/src/main/java/org/apache/bval/util/reflection/TypeUtils.java [1342:1363]
public static boolean equals(final Type t1, final Type t2) {
if (t1 == t2) {
return true;
}
if (t1 == null || t2 == null) {
return false;
}
if (t1.equals(t2)) {
return true;
}
if (t1 instanceof ParameterizedType) {
return equals((ParameterizedType) t1, t2);
}
if (t1 instanceof GenericArrayType) {
return equals((GenericArrayType) t1, t2);
}
if (t1 instanceof WildcardType) {
return equals((WildcardType) t1, t2);
}
return false;
}