RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

Sean Mullan mullan at openjdk.org
Tue Nov 19 19:43:48 UTC 2024


On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian <bchristi at openjdk.org> wrote:

> Remove usages of SecurityManager, doPrivildged, and AccessController from the java.prefs module.

src/java.prefs/share/classes/java/util/prefs/AbstractPreferences.java line 1059:

> 1057:      *         preference tree.
> 1058:      */
> 1059:     @SuppressWarnings("removal")

Can remove this line.

src/java.prefs/share/classes/java/util/prefs/Preferences.java line 220:

> 218:     private static final PreferencesFactory factory = factory();
> 219: 
> 220:     @SuppressWarnings("removal")

I think you can remove this line.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22252#discussion_r1848955427
PR Review Comment: https://git.openjdk.org/jdk/pull/22252#discussion_r1848957788


More information about the core-libs-dev mailing list