mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8345286: Remove use of SecurityManager API from misc areas
Reviewed-by: alanb, kevinw, sgehwolf
This commit is contained in:
parent
38927fc590
commit
3d49665b85
22 changed files with 43 additions and 261 deletions
|
@ -283,7 +283,6 @@ public final class FilePermission extends Permission implements Serializable {
|
|||
* @param mask the actions mask to use.
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private void init(int mask) {
|
||||
if ((mask & ALL) != mask)
|
||||
throw new IllegalArgumentException("invalid actions mask");
|
||||
|
|
|
@ -549,7 +549,6 @@ public final class String
|
|||
* Important: parameter order of this method is deliberately changed in order to
|
||||
* disambiguate it against other similar methods of this class.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private String(Charset charset, byte[] bytes, int offset, int length) {
|
||||
if (length == 0) {
|
||||
this.value = "".value;
|
||||
|
@ -787,7 +786,6 @@ public final class String
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private static String newStringNoRepl1(byte[] src, Charset cs) {
|
||||
int len = src.length;
|
||||
if (len == 0) {
|
||||
|
|
|
@ -1379,7 +1379,6 @@ public final class System {
|
|||
|
||||
|
||||
private static volatile LoggerFinder service;
|
||||
@SuppressWarnings("removal")
|
||||
static LoggerFinder accessProvider() {
|
||||
// We do not need to synchronize: LoggerFinderLoader will
|
||||
// always return the same instance, so if we don't have it,
|
||||
|
@ -1483,7 +1482,6 @@ public final class System {
|
|||
*
|
||||
* @since 9
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@CallerSensitive
|
||||
public static Logger getLogger(String name, ResourceBundle bundle) {
|
||||
final ResourceBundle rb = Objects.requireNonNull(bundle);
|
||||
|
|
|
@ -578,7 +578,6 @@ abstract class ClassSpecializer<T,K,S extends ClassSpecializer<T,K,S>.SpeciesDat
|
|||
* @param speciesData what species we are generating
|
||||
* @return the generated concrete TopClass class
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
Class<? extends T> generateConcreteSpeciesCode(String className, ClassSpecializer<T,K,S>.SpeciesData speciesData) {
|
||||
byte[] classFile = generateConcreteSpeciesCodeFile(className, speciesData);
|
||||
var lookup = new MethodHandles.Lookup(topClass);
|
||||
|
|
|
@ -103,7 +103,6 @@ final class ProxyGenerator {
|
|||
/**
|
||||
* debugging flag for saving generated class files
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private static final boolean SAVE_GENERATED_FILES =
|
||||
Boolean.getBoolean("jdk.proxy.ProxyGenerator.saveGeneratedFiles");
|
||||
|
||||
|
|
|
@ -1388,7 +1388,6 @@ public abstract class URLConnection {
|
|||
return UnknownContentHandler.INSTANCE;
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private ContentHandler lookupContentHandlerViaProvider(String contentType) {
|
||||
|
||||
ClassLoader cl = ClassLoader.getSystemClassLoader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue