mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Avoid allocations from lower-casing spec in JAR Handler
Closes gh-11314
This commit is contained in:
parent
846e642631
commit
37437a0fe2
@ -159,7 +159,7 @@ public class Handler extends URLStreamHandler {
|
||||
|
||||
@Override
|
||||
protected void parseURL(URL context, String spec, int start, int limit) {
|
||||
if (spec.toLowerCase().startsWith(JAR_PROTOCOL)) {
|
||||
if (spec.regionMatches(true, 0, JAR_PROTOCOL, 0, JAR_PROTOCOL.length())) {
|
||||
setFile(context, getFileFromSpec(spec.substring(start, limit)));
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user