Polishing

This commit is contained in:
Sam Brannen
2026-03-25 12:12:29 +01:00
parent 0f4ee906de
commit bcc9e27dd0
2 changed files with 14 additions and 13 deletions
@@ -400,7 +400,7 @@ public class SpringExtension implements BeforeAllCallback, AfterAllCallback, Tes
ParameterResolutionDelegate.isAutowirable(parameter, parameterContext.getIndex()));
}
private boolean supportsApplicationEvents(Class<?> parameterType, Executable executable) {
private static boolean supportsApplicationEvents(Class<?> parameterType, Executable executable) {
if (ApplicationEvents.class.isAssignableFrom(parameterType)) {
Assert.isTrue(executable instanceof Method,
"ApplicationEvents can only be injected into test and lifecycle methods");