This commit is contained in:
Phillip Webb
2016-06-24 11:52:43 -07:00
parent 0d207d438a
commit c22a0e90a2
2 changed files with 2 additions and 4 deletions

View File

@@ -69,8 +69,6 @@ public abstract class AutoConfigurationPackages {
* @throws IllegalStateException if auto-configuration is not enabled
*/
public static List<String> get(BeanFactory beanFactory) {
// Currently we only store a single base package, but we return a list to
// allow this to change in the future if needed
try {
return beanFactory.getBean(BEAN, BasePackages.class).get();
}

View File

@@ -96,8 +96,8 @@ class JarURLConnection extends java.net.JarURLConnection {
if (separatorIndex < 0) {
return "";
}
return file
.substring(separatorIndex + SEPARATOR.length() + pathFromRoot.length());
int specIndex = separatorIndex + SEPARATOR.length() + pathFromRoot.length();
return file.substring(specIndex);
}
private JarFile getNestedJarFile(JarFile jarFile, String name) throws IOException {