1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
26
26
package java .security ;
27
27
28
- import sun .security .util .Debug ;
29
-
30
28
import java .util .Map ;
31
29
import java .util .Objects ;
32
30
import java .util .concurrent .ConcurrentHashMap ;
@@ -181,13 +179,6 @@ protected PermissionCollection getPermissions(CodeSource codesource)
181
179
return new Permissions (); // ProtectionDomain defers the binding
182
180
}
183
181
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
-
191
182
/*
192
183
* Returned cached ProtectionDomain for the specified CodeSource.
193
184
*/
@@ -209,10 +200,6 @@ public ProtectionDomain apply(CodeSourceKey key) {
209
200
= SecureClassLoader .this .getPermissions (key .cs );
210
201
ProtectionDomain pd = new ProtectionDomain (
211
202
key .cs , perms , SecureClassLoader .this , null );
212
- if (DebugHolder .debug != null ) {
213
- DebugHolder .debug .println (" getPermissions " + pd );
214
- DebugHolder .debug .println ("" );
215
- }
216
203
return pd ;
217
204
}
218
205
});
0 commit comments