diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/InstanceSupplier.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/InstanceSupplier.java index 6d12abc287..cd41026d6c 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/InstanceSupplier.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/InstanceSupplier.java @@ -138,7 +138,7 @@ public interface InstanceSupplier extends ThrowingSupplier { * Lambda friendly method that can be used to create a * {@link InstanceSupplier} and add post processors in a single call. For * example: {@code - * InstanceSupplier.of(registeredBean -> ...).withPostProcessor(...)}. + * InstanceSupplier.of(registeredBean -> ...).andThen(...)}. * @param the type of instance supplied by this supplier * @param instanceSupplier the source instance supplier * @return a new {@link InstanceSupplier}