From 8c93d2e8a78531897fb4720573c0251e0f84d836 Mon Sep 17 00:00:00 2001 From: aoyvx <1580319665@qq.com> Date: Tue, 26 Jul 2022 22:31:25 +0800 Subject: [PATCH] Ensure PROTOCOL_HANDLER system property is reset See gh-31870 --- .../java/org/springframework/boot/loader/jar/Handler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java index fad95b607e44..25037d15dafc 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -413,7 +413,7 @@ static void addToRootFileCache(File sourceFile, JarFile jarFile) { */ static void captureJarContextUrl() { if (canResetCachedUrlHandlers()) { - String handlers = System.getProperty(PROTOCOL_HANDLER, ""); + String handlers = System.getProperty(PROTOCOL_HANDLER); try { System.clearProperty(PROTOCOL_HANDLER); try {