Skip to content

Commit 3f2556b

Browse files
committedDec 12, 2024
8345984: Remove redundant checkXXX methods from java.management Util class
Reviewed-by: alanb, mchung, cjplummer, sspitsyn
1 parent ceb4366 commit 3f2556b

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed
 

‎src/java.management/share/classes/sun/management/Util.java

-12
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,4 @@ public static ObjectName newObjectName(String name) {
4949
throw new IllegalArgumentException(e);
5050
}
5151
}
52-
53-
// Methods retained temporarily due to usage by jdk.management.
54-
static void checkAccess(ManagementPermission p) {
55-
// no-op
56-
}
57-
58-
static void checkMonitorAccess() throws SecurityException {
59-
// no-op
60-
}
61-
public static void checkControlAccess() throws SecurityException {
62-
// no-op
63-
}
6452
}

‎src/jdk.management/share/classes/com/sun/management/internal/GarbageCollectionNotifInfoCompositeData.java

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import java.util.HashMap;
3838
import sun.management.LazyCompositeData;
3939
import static sun.management.LazyCompositeData.getString;
40-
import sun.management.Util;
4140

4241
/**
4342
* A CompositeData for GarbageCollectionNotificationInfo for the local management support.

‎src/jdk.management/share/classes/com/sun/management/internal/GcInfoBuilder.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, 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
@@ -31,7 +31,6 @@
3131
import javax.management.openmbean.CompositeType;
3232
import javax.management.openmbean.OpenDataException;
3333
import com.sun.management.GcInfo;
34-
import sun.management.Util;
3534

3635
/**
3736
* Helper class to build composite data.

‎src/jdk.management/share/classes/com/sun/management/internal/GcInfoCompositeData.java

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import sun.management.LazyCompositeData;
4242
import static sun.management.LazyCompositeData.getLong;
4343
import sun.management.MappedMXBeanType;
44-
import sun.management.Util;
4544

4645
/**
4746
* A CompositeData for GcInfo for the local management support.

0 commit comments

Comments
 (0)
Please sign in to comment.