Skip to content

Commit 8009f3f

Browse files
committed
Types.unroll: tweak parameter name for consistency
1 parent 3a83547 commit 8009f3f

File tree

1 file changed

+7
-4
lines changed
  • scijava-common3/src/main/java/org/scijava/common3

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,18 +819,21 @@ public static Type unroll(Type typeToMap,
819819
* Get a type representing {@code type} with variable assignments
820820
* "unrolled."
821821
*
822-
* @param typeArguments as from {@link #args(Type, Class)}
822+
* @param typeVarAssigns a {@code Map} of the type assignments for the
823+
* type variables in each type in the inheritance hierarchy
824+
* of {@code type}.
823825
* @param type the type to unroll variable assignments for
824826
* @param followTypeVars whether a {@link TypeVariable} should be
825827
* recursively followed if it maps to another {@link TypeVariable},
826828
* or if it should be just replaced by the mapping
827829
* @return Type
828830
*/
829831
public static Type unroll(
830-
Map<TypeVariable<?>, Type> typeArguments,
831-
final Type type, boolean followTypeVars
832+
Map<TypeVariable<?>, Type> typeVarAssigns,
833+
final Type type,
834+
boolean followTypeVars
832835
) {
833-
return TypeUtils.unrollVariables(typeArguments, type, followTypeVars);
836+
return TypeUtils.unrollVariables(typeVarAssigns, type, followTypeVars);
834837
}
835838

836839
/**

0 commit comments

Comments
 (0)