Skip to content

Commit 727c85d

Browse files
committed
Types: hide typeParamsOf(Class, Class) method
The typeParamsOf(Type, Class) method has a more general signature.
1 parent dda72d0 commit 727c85d

File tree

1 file changed

+2
-2
lines changed
  • scijava-types/src/main/java/org/scijava/types

1 file changed

+2
-2
lines changed

scijava-types/src/main/java/org/scijava/types/Types.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public static Type[] typeParamsOf(Type src, Class<?> superclass) {
410410
Type superSrc = superTypeOf(src, superclass);
411411
if (superSrc instanceof ParameterizedType)
412412
return ((ParameterizedType) superSrc).getActualTypeArguments();
413-
return typeParamsOf(raw(src), superclass);
413+
return typeParamsOfClass(raw(src), superclass);
414414
}
415415
catch (AssertionError e) {
416416
return new Type[0];
@@ -431,7 +431,7 @@ public static Type[] typeParamsOf(Type src, Class<?> superclass) {
431431
* {@code subType}, or empty type array if no exists or
432432
* {@code superErasure} is not a super type of subtype
433433
*/
434-
public static Type[] typeParamsOf(Class<?> subType, Class<?> superErasure) {
434+
private static Type[] typeParamsOfClass(Class<?> subType, Class<?> superErasure) {
435435
Type pt = parameterize(subType);
436436
Type superType = superTypeOf(pt, superErasure);
437437
if (superType instanceof ParameterizedType) {

0 commit comments

Comments
 (0)