11/*
2- * Copyright (c) 1997, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1997, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
2525
2626package java .security ;
2727
28- import sun .security .util .Debug ;
29-
3028import java .util .Map ;
3129import java .util .Objects ;
3230import java .util .concurrent .ConcurrentHashMap ;
@@ -181,13 +179,6 @@ protected PermissionCollection getPermissions(CodeSource codesource)
181179 return new Permissions (); // ProtectionDomain defers the binding
182180 }
183181
184- /*
185- * holder class for the static field "debug" to delay its initialization
186- */
187- private static class DebugHolder {
188- private static final Debug debug = Debug .getInstance ("scl" );
189- }
190-
191182 /*
192183 * Returned cached ProtectionDomain for the specified CodeSource.
193184 */
@@ -209,10 +200,6 @@ public ProtectionDomain apply(CodeSourceKey key) {
209200 = SecureClassLoader .this .getPermissions (key .cs );
210201 ProtectionDomain pd = new ProtectionDomain (
211202 key .cs , perms , SecureClassLoader .this , null );
212- if (DebugHolder .debug != null ) {
213- DebugHolder .debug .println (" getPermissions " + pd );
214- DebugHolder .debug .println ("" );
215- }
216203 return pd ;
217204 }
218205 });
0 commit comments