Skip to content

Commit 8b17826

Browse files
committed
seal Platform.Preferences
1 parent c144a79 commit 8b17826

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/javafx.graphics/src/main/java/com/sun/javafx/application/preferences/PlatformPreferences.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* When the operating system signals that a preference has changed, the mappings are updated
5252
* by calling the {@link #update(Map)} method.
5353
*/
54-
public class PlatformPreferences extends AbstractMap<String, Object> implements Platform.Preferences {
54+
public final class PlatformPreferences extends AbstractMap<String, Object> implements Platform.Preferences {
5555

5656
/**
5757
* Contains mappings from platform-specific keys to their types. This information is

modules/javafx.graphics/src/main/java/javafx/application/Platform.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ public static Preferences getPreferences() {
583583
*
584584
* @since 22
585585
*/
586-
public interface Preferences extends ObservableMap<String, Object> {
586+
public sealed interface Preferences extends ObservableMap<String, Object>
587+
permits com.sun.javafx.application.preferences.PlatformPreferences {
587588

588589
/**
589590
* Specifies whether applications should minimize the amount of non-essential animations,

0 commit comments

Comments
 (0)