Skip to content

Commit 923dd35

Browse files
committed
Merge pull request #31870 from aoyvx
* pr/31870: Ensure PROTOCOL_HANDLER system property is reset Closes gh-31870
2 parents 9329acd + 8c93d2e commit 923dd35

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -413,7 +413,7 @@ static void addToRootFileCache(File sourceFile, JarFile jarFile) {
413413
*/
414414
static void captureJarContextUrl() {
415415
if (canResetCachedUrlHandlers()) {
416-
String handlers = System.getProperty(PROTOCOL_HANDLER, "");
416+
String handlers = System.getProperty(PROTOCOL_HANDLER);
417417
try {
418418
System.clearProperty(PROTOCOL_HANDLER);
419419
try {

0 commit comments

Comments
 (0)