From d9bf3e54f7f80a51d005c103daf07baf02828d33 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 1 Aug 2022 13:29:40 +0300 Subject: [PATCH] Removed unused method parameter See gh-28901 --- .../compile/CompileWithTargetClassAccessExtension.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompileWithTargetClassAccessExtension.java b/spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompileWithTargetClassAccessExtension.java index 560f4402d50..31799f02be8 100644 --- a/spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompileWithTargetClassAccessExtension.java +++ b/spring-core-test/src/main/java/org/springframework/aot/test/generator/compile/CompileWithTargetClassAccessExtension.java @@ -119,16 +119,14 @@ class CompileWithTargetClassAccessExtension implements InvocationInterceptor { testClass.getClassLoader()); Thread.currentThread().setContextClassLoader(forkedClassPathClassLoader); try { - runTest(forkedClassPathClassLoader, testClass, testMethod); + runTest(testClass, testMethod); } finally { Thread.currentThread().setContextClassLoader(originalClassLoader); } } - private void runTest(ClassLoader classLoader, Class testClass, Method testMethod) - throws Throwable { - + private void runTest(Class testClass, Method testMethod) throws Throwable { LauncherDiscoveryRequest request = LauncherDiscoveryRequestBuilder.request() .selectors(selectMethod(getFullyQualifiedMethodName(testClass, testMethod))) .filters(includeEngines("junit-jupiter"))