Skip to content
Permalink
Browse files
8273654: JFR: Remove unused SecuritySupport.setAccessible(Field)
Reviewed-by: mseledtsov, shade
  • Loading branch information
egahlin committed Sep 20, 2021
1 parent 4b3a4ff commit 26e5e9ae8cddbbd8bc498d2951e37970358f79ba
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/jdk.jfr/share/classes/jdk/jfr/internal/SecuritySupport.java
@@ -431,10 +431,6 @@ static void setAccessible(Method method) {
doPrivileged(() -> method.setAccessible(true), new ReflectPermission("suppressAccessChecks"));
}

static void setAccessible(Field field) {
doPrivileged(() -> field.setAccessible(true), new ReflectPermission("suppressAccessChecks"));
}

static void setAccessible(Constructor<?> constructor) {
doPrivileged(() -> constructor.setAccessible(true), new ReflectPermission("suppressAccessChecks"));
}

1 comment on commit 26e5e9a

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 26e5e9a Sep 20, 2021

Please sign in to comment.