Skip to content

Commit c22a0e9

Browse files
committed
Polish
1 parent 0d207d4 commit c22a0e9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java

-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ public static boolean has(BeanFactory beanFactory) {
6969
* @throws IllegalStateException if auto-configuration is not enabled
7070
*/
7171
public static List<String> get(BeanFactory beanFactory) {
72-
// Currently we only store a single base package, but we return a list to
73-
// allow this to change in the future if needed
7472
try {
7573
return beanFactory.getBean(BEAN, BasePackages.class).get();
7674
}

spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarURLConnection.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ private String extractFullSpec(URL url, String pathFromRoot) {
9696
if (separatorIndex < 0) {
9797
return "";
9898
}
99-
return file
100-
.substring(separatorIndex + SEPARATOR.length() + pathFromRoot.length());
99+
int specIndex = separatorIndex + SEPARATOR.length() + pathFromRoot.length();
100+
return file.substring(specIndex);
101101
}
102102

103103
private JarFile getNestedJarFile(JarFile jarFile, String name) throws IOException {

0 commit comments

Comments
 (0)