From dbc1fc26e6fac03eab894599173a726fe5e098ac Mon Sep 17 00:00:00 2001 From: arefbehboudi Date: Wed, 18 Dec 2024 20:18:29 +0330 Subject: [PATCH] Polish See gh-43560 --- .../devtools/tests/JarFileRemoteApplicationLauncher.java | 5 ++--- .../boot/devtools/restart/RestartApplicationListener.java | 4 ++-- .../devtools/restart/classloader/RestartClassLoader.java | 4 ++-- 3 files changed, 6 insertions(+), 7 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 9cc7dee48ce..2af0ad2f4ba 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 @@ -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 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 e42e095be38..5a5b0d9b05e 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 @@ -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 implements Enumeration {