Skip to content

Commit

Permalink
8345984: Remove redundant checkXXX methods from java.management Util …
Browse files Browse the repository at this point in the history
…class

Reviewed-by: alanb, mchung, cjplummer, sspitsyn
  • Loading branch information
kevinjwalls committed Dec 12, 2024
1 parent ceb4366 commit 3f2556b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
12 changes: 0 additions & 12 deletions src/java.management/share/classes/sun/management/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,4 @@ public static ObjectName newObjectName(String name) {
throw new IllegalArgumentException(e);
}
}

// Methods retained temporarily due to usage by jdk.management.
static void checkAccess(ManagementPermission p) {
// no-op
}

static void checkMonitorAccess() throws SecurityException {
// no-op
}
public static void checkControlAccess() throws SecurityException {
// no-op
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import java.util.HashMap;
import sun.management.LazyCompositeData;
import static sun.management.LazyCompositeData.getString;
import sun.management.Util;

/**
* A CompositeData for GarbageCollectionNotificationInfo for the local management support.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2024, 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
Expand Down Expand Up @@ -31,7 +31,6 @@
import javax.management.openmbean.CompositeType;
import javax.management.openmbean.OpenDataException;
import com.sun.management.GcInfo;
import sun.management.Util;

/**
* Helper class to build composite data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import sun.management.LazyCompositeData;
import static sun.management.LazyCompositeData.getLong;
import sun.management.MappedMXBeanType;
import sun.management.Util;

/**
* A CompositeData for GcInfo for the local management support.
Expand Down

0 comments on commit 3f2556b

Please sign in to comment.