Merge pull request #31870 from aoyvx

* pr/31870:
  Ensure PROTOCOL_HANDLER system property is reset

Closes gh-31870
pull/32521/head
Phillip Webb 2 years ago
commit 923dd3504b

@ -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 @@ public class Handler extends URLStreamHandler {
*/
static void captureJarContextUrl() {
if (canResetCachedUrlHandlers()) {
String handlers = System.getProperty(PROTOCOL_HANDLER, "");
String handlers = System.getProperty(PROTOCOL_HANDLER);
try {
System.clearProperty(PROTOCOL_HANDLER);
try {

Loading…
Cancel
Save