Browse Source

Polish

See gh-43560
pull/43572/head
arefbehboudi 1 year ago committed by Phillip Webb
parent
commit
dbc1fc26e6
  1. 5
      spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java
  2. 4
      spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java
  3. 4
      spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java

5
spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2024 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.
@ -55,8 +55,7 @@ public class JarFileRemoteApplicationLauncher extends RemoteApplicationLauncher @@ -55,8 +55,7 @@ public class JarFileRemoteApplicationLauncher extends RemoteApplicationLauncher
List<String> entries = new ArrayList<>();
entries.add(appJar.getAbsolutePath());
entries.addAll(getDependencyJarPaths());
String classpath = StringUtils.collectionToDelimitedString(entries, File.pathSeparator);
return classpath;
return StringUtils.collectionToDelimitedString(entries, File.pathSeparator);
}
private void addToJar(JarOutputStream output, File root, File current) throws IOException {

4
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 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.
@ -62,7 +62,7 @@ public class RestartApplicationListener implements ApplicationListener<Applicati @@ -62,7 +62,7 @@ public class RestartApplicationListener implements ApplicationListener<Applicati
}
private void onApplicationStartingEvent(ApplicationStartingEvent event) {
// It's too early to use the Spring environment but we should still allow
// It's too early to use the Spring environment, but we should still allow
// users to disable restart using a System property.
String enabled = System.getProperty(ENABLED_PROPERTY);
RestartInitializer restartInitializer = null;

4
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 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.
@ -167,7 +167,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad @@ -167,7 +167,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
/**
* Compound {@link Enumeration} that adds an additional item to the front.
* Compound {@link Enumeration} that adds an item to the front.
*/
private static class CompoundEnumeration<E> implements Enumeration<E> {

Loading…
Cancel
Save