Apply animal sniffer to entire build
Move animal sniffer configuration out of spring-boot-dependencies to spring-boot-parent and apply it to all projects. See gh-716
This commit is contained in:
@@ -27,6 +27,7 @@ import java.util.Enumeration;
|
||||
|
||||
import org.springframework.boot.loader.jar.Handler;
|
||||
import org.springframework.boot.loader.jar.JarFile;
|
||||
import org.springframework.lang.UsesJava7;
|
||||
|
||||
/**
|
||||
* {@link ClassLoader} used by the {@link Launcher}.
|
||||
@@ -224,6 +225,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||
}
|
||||
}
|
||||
|
||||
@UsesJava7
|
||||
private static LockProvider setupLockProvider() {
|
||||
try {
|
||||
ClassLoader.registerAsParallelCapable();
|
||||
@@ -248,6 +250,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
|
||||
/**
|
||||
* Java 7 specific {@link LockProvider}.
|
||||
*/
|
||||
@UsesJava7
|
||||
private static class Java7LockProvider extends LockProvider {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user