@Override protected Resolution rebase(MethodDescription.InDefinedShape methodDescription) { return methodDescription.isConstructor() ? Resolution.ForRebasedConstructor.of( methodDescription, placeholderType.getTypeDescription()) : Resolution.ForRebasedMethod.of(methodDescription, methodNameTransformer); }
@Override protected Resolution rebase(MethodDescription.InDefinedShape methodDescription) { if (methodDescription.isConstructor()) { throw new IllegalArgumentException("Cannot rebase constructor without preparation"); } return Resolution.ForRebasedMethod.of(methodDescription, methodNameTransformer); }