Skip to content

Commit e7f7dda

Browse files
committed
Add comment into Types.isAssignable
This particular change is very difficult to test, so in the interest of time I'm just going to leave some broad comments
1 parent 2bacb40 commit e7f7dda

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,12 +1922,14 @@ else if (!isAssignable(fromResolved == null ? fromTypeArg
19221922
// typeVarAssigns.
19231923
// Effectively toResolved = fromResolved.
19241924
if (toTypeArg == null && toResolved == null && typeVarAssigns != null) {
1925+
// bind unbounded to a concrete type
19251926
if (fromResolved != null) {
19261927
TypeVariable<?> unbounded = (TypeVariable<?>) toTypeVarAssigns.get(
19271928
var);
19281929
typeVarAssigns.put(unbounded, fromResolved);
19291930
toResolved = fromResolved;
19301931
}
1932+
// bind unbounded to another type variable
19311933
else {
19321934
typeVarAssigns.put((TypeVariable<?>) toTypeVarAssigns.get(var),
19331935
fromTypeVarAssigns.get(var));

0 commit comments

Comments
 (0)