Skip to content

Commit

Permalink
Adapt to API change in Spring Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Sep 12, 2022
1 parent de0efcf commit 4861960
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import org.springframework.aot.generate.GeneratedMethod;
import org.springframework.aot.generate.GenerationContext;
import org.springframework.aot.generate.MethodReference;
import org.springframework.beans.factory.aot.BeanRegistrationAotContribution;
import org.springframework.beans.factory.aot.BeanRegistrationAotProcessor;
import org.springframework.beans.factory.aot.BeanRegistrationCode;
Expand Down Expand Up @@ -159,8 +158,7 @@ public void applyTo(GenerationContext generationContext, BeanRegistrationCode be
});
method.addStatement("return instance.withChildContextInitializers(initializers)");
});
beanRegistrationCode.addInstancePostProcessor(
MethodReference.ofStatic(beanRegistrationCode.getClassName(), postProcessorMethod.getName()));
beanRegistrationCode.addInstancePostProcessor(postProcessorMethod.toMethodReference());
}
}

Expand Down

0 comments on commit 4861960

Please sign in to comment.