Polish
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user