Skip to content

Commit b7208c5

Browse files
onobcolegz
authored andcommitted
Remove now unnecessary override of createClassLoader
Resolves #810
1 parent c61f69d commit b7208c5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionArchiveDeployer.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.lang.reflect.Method;
2121
import java.lang.reflect.Type;
2222
import java.net.URL;
23-
import java.net.URLClassLoader;
2423
import java.util.ArrayList;
2524
import java.util.HashMap;
2625
import java.util.Iterator;
@@ -159,13 +158,6 @@ void undeploy() {
159158
}
160159
}
161160

162-
// TODO remove this method all together once https://github.com/spring-projects/spring-boot/pull/20851 is addressed
163-
@Override
164-
protected ClassLoader createClassLoader(Iterator<Archive> archives) throws Exception {
165-
URLClassLoader cl = (URLClassLoader) super.createClassLoader(archives);
166-
return this.createClassLoader(cl.getURLs());
167-
}
168-
169161
@Override
170162
protected ClassLoader createClassLoader(URL[] urls) throws Exception {
171163
String classAsPath = DeployerContextUtils.class.getName().replace('.', '/') + ".class";

0 commit comments

Comments
 (0)