@@ -2080,7 +2080,7 @@ public TypeDescription.Generic getResultType() {
2080
2080
}
2081
2081
2082
2082
/**
2083
- * A step within a substitution chain that converts the current type to the expected return type .
2083
+ * A step within a substitution chain that converts the current type to another type by casting .
2084
2084
*/
2085
2085
@ HashCodeAndEqualsPlugin .Enhance
2086
2086
class ForAssignment implements Step {
@@ -2801,6 +2801,17 @@ public Factory(Method method) {
2801
2801
this (new MethodDescription .ForLoadedMethod (method ));
2802
2802
}
2803
2803
2804
+ /**
2805
+ * Creates a factory for a method invocation without parameter substitutions.
2806
+ *
2807
+ * @param method The invoked method.
2808
+ * @param substitutions A mapping of substituted parameter indices. For targets that are non-static methods,
2809
+ * the targeted index is increased by one.
2810
+ */
2811
+ public Factory (Method method , Map <Integer , Integer > substitutions ) {
2812
+ this (new MethodDescription .ForLoadedMethod (method ), substitutions );
2813
+ }
2814
+
2804
2815
/**
2805
2816
* Creates a factory for a method invocation without parameter substitutions.
2806
2817
*
@@ -2810,6 +2821,17 @@ public Factory(Constructor<?> constructor) {
2810
2821
this (new MethodDescription .ForLoadedConstructor (constructor ));
2811
2822
}
2812
2823
2824
+ /**
2825
+ * Creates a factory for a method invocation without parameter substitutions.
2826
+ *
2827
+ * @param constructor The constructor.
2828
+ * @param substitutions A mapping of substituted parameter indices. For targets that are non-static methods,
2829
+ * the targeted index is increased by one.
2830
+ */
2831
+ public Factory (Constructor <?> constructor , Map <Integer , Integer > substitutions ) {
2832
+ this (new MethodDescription .ForLoadedConstructor (constructor ), substitutions );
2833
+ }
2834
+
2813
2835
/**
2814
2836
* Creates a factory for a method invocation without parameter substitutions.
2815
2837
*
0 commit comments