From f470151535d78ef6a14b85488d26fb9ea75cfd7a Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Wed, 2 Jun 2021 20:20:23 +0200 Subject: [PATCH] Remove reference to surefirebooter JAR See gh-26737 --- .../classpath/ModifiedClassPathClassLoader.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java index 21c0a75cc81..eccf27a4db4 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/classpath/ModifiedClassPathClassLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -124,11 +124,7 @@ final class ModifiedClassPathClassLoader extends URLClassLoader { } private static boolean isManifestOnlyJar(URL url) { - return isSurefireBooterJar(url) || isShortenedIntelliJJar(url); - } - - private static boolean isSurefireBooterJar(URL url) { - return url.getPath().contains("surefirebooter"); + return isShortenedIntelliJJar(url); } private static boolean isShortenedIntelliJJar(URL url) {