File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/java.desktop/share/classes/java/awt Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1996, 2021 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1996, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -295,19 +295,18 @@ public static Cursor getSystemCustomCursor(final String name)
295
295
loadSystemCustomCursorProperties ();
296
296
297
297
String prefix = CURSOR_DOT_PREFIX + name ;
298
- String key = prefix + DOT_FILE_SUFFIX ;
299
298
300
- if (!systemCustomCursorProperties .containsKey (key )) {
299
+ String fileName =
300
+ systemCustomCursorProperties .getProperty (prefix + DOT_FILE_SUFFIX );
301
+
302
+ if (fileName == null ) {
301
303
if (log .isLoggable (PlatformLogger .Level .FINER )) {
302
304
log .finer ("Cursor.getSystemCustomCursor(" + name + ") returned null" );
303
305
}
304
306
return null ;
305
307
}
306
308
307
- final String fileName =
308
- systemCustomCursorProperties .getProperty (key );
309
-
310
- final String localized = systemCustomCursorProperties .getProperty (
309
+ String localized = systemCustomCursorProperties .getProperty (
311
310
prefix + DOT_NAME_SUFFIX , name );
312
311
313
312
String hotspot = systemCustomCursorProperties .getProperty (prefix + DOT_HOTSPOT_SUFFIX );
You can’t perform that action at this time.
0 commit comments