From 1bd1f6c21dd91d6ec040f330fdcb825334284be0 Mon Sep 17 00:00:00 2001 From: arefbehboudi Date: Wed, 18 Dec 2024 20:18:29 +0330 Subject: [PATCH] Polish --- .../boot/devtools/tests/JarFileRemoteApplicationLauncher.java | 3 +-- .../boot/devtools/restart/RestartApplicationListener.java | 2 +- .../boot/devtools/restart/classloader/RestartClassLoader.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java b/spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java index 9cc7dee48cee..7a0c28170a15 100644 --- a/spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java +++ b/spring-boot-project/spring-boot-devtools/src/intTest/java/org/springframework/boot/devtools/tests/JarFileRemoteApplicationLauncher.java @@ -55,8 +55,7 @@ protected String createApplicationClassPath() throws Exception { List 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 { diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java index e42e095be386..e528dc7109e4 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java @@ -62,7 +62,7 @@ public void onApplicationEvent(ApplicationEvent event) { } 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; diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java index e988d88e251f..0346c27468fa 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java @@ -167,7 +167,7 @@ public boolean isClassReloadable(Class classType) { } /** - * 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 implements Enumeration {