Commit 1640add8 authored by Phillip Webb's avatar Phillip Webb

Don't use Assert class from loader

Remove the use of `Assert` since it's unavailable that early.
parent d9fb4dd4
...@@ -31,8 +31,6 @@ import java.util.Collections; ...@@ -31,8 +31,6 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.springframework.util.Assert;
/** /**
* A class path index file that provides ordering information for JARs. * A class path index file that provides ordering information for JARs.
* *
...@@ -51,9 +49,11 @@ final class ClassPathIndexFile { ...@@ -51,9 +49,11 @@ final class ClassPathIndexFile {
} }
private String extractName(String line) { private String extractName(String line) {
Assert.state(line.startsWith("- \"") && line.endsWith("\""), "Malformed classpath index line [" + line + "]"); if (line.startsWith("- \"") && line.endsWith("\"")) {
return line.substring(3, line.length() - 1); return line.substring(3, line.length() - 1);
} }
throw new IllegalStateException("Malformed classpath index line [" + line + "]");
}
int size() { int size() {
return this.lines.size(); return this.lines.size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment