8272777: Clean up remaining AccessController warnings in test library
Reviewed-by: rriggs, sspitsyn
This commit is contained in:
parent
5ab22e88da
commit
63a00a0df2
test/lib/jdk/test/lib
@ -159,6 +159,7 @@ public class SATestUtils {
|
||||
* if we are root, so return true. Then return false for an expected denial
|
||||
* if "ptrace_scope" is 1, and true otherwise.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private static boolean canPtraceAttachLinux() throws IOException {
|
||||
// SELinux deny_ptrace:
|
||||
var deny_ptrace = Paths.get("/sys/fs/selinux/booleans/deny_ptrace");
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -71,6 +71,7 @@ public class IPSupport {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private static <T> T runPrivilegedAction(Callable<T> callable) {
|
||||
try {
|
||||
PrivilegedExceptionAction<T> pa = () -> callable.call();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -54,6 +54,7 @@ public class SimpleSSLContext {
|
||||
this(() -> "TLS");
|
||||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
private SimpleSSLContext(Supplier<String> protocols) throws IOException {
|
||||
try {
|
||||
final String proto = protocols.get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user