Skip to content

Commit f426fa2

Browse files
committed
Add missing constructors.
1 parent 8495852 commit f426fa2

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/asm/MemberSubstitution.java

+23-1
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ public TypeDescription.Generic getResultType() {
20802080
}
20812081

20822082
/**
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.
20842084
*/
20852085
@HashCodeAndEqualsPlugin.Enhance
20862086
class ForAssignment implements Step {
@@ -2801,6 +2801,17 @@ public Factory(Method method) {
28012801
this(new MethodDescription.ForLoadedMethod(method));
28022802
}
28032803

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+
28042815
/**
28052816
* Creates a factory for a method invocation without parameter substitutions.
28062817
*
@@ -2810,6 +2821,17 @@ public Factory(Constructor<?> constructor) {
28102821
this(new MethodDescription.ForLoadedConstructor(constructor));
28112822
}
28122823

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+
28132835
/**
28142836
* Creates a factory for a method invocation without parameter substitutions.
28152837
*

0 commit comments

Comments
 (0)