Skip to content

Commit cb0e10a

Browse files
Fix docs to address review coments
1 parent a8adc59 commit cb0e10a

File tree

1 file changed

+5
-5
lines changed
  • modules/javafx.graphics/src/main/java/javafx/application

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -333,25 +333,25 @@ public static void exitNestedEventLoop(Object key, Object rval) {
333333

334334
/**
335335
* Returns a flag indicating whether the key corresponding to {@code keyCode}
336-
* is in the locked or "on" state.
336+
* is in the locked (or "on") state.
337337
* {@code keyCode} must be one of: {@link KeyCode#CAPS} or
338338
* {@link KeyCode#NUM_LOCK}.
339339
* If the underlying system is not able to determine the state of the
340340
* specified {@code keyCode}, an empty {@code Optional} is returned.
341341
* If the keyboard attached to the system doesn't have the specified key,
342-
* {@code Boolean.FALSE} is returned.
342+
* an {@code Optional} containing {@code false} is returned.
343343
* This method must be called on the JavaFX Application thread.
344344
*
345-
* @param keyCode the KeyCode of the lock state to query
345+
* @param keyCode the {@code KeyCode} of the lock state to query
346346
*
347347
* @return the lock state of the key corresponding to {@code keyCode},
348348
* or an empty {@code Optional} if the system cannot determine its state
349349
*
350350
* @throws IllegalArgumentException if {@code keyCode} is not one of the
351-
* valid KeyCode values.
351+
* valid {@code KeyCode} values
352352
*
353353
* @throws IllegalStateException if this method is called on a thread
354-
* other than the JavaFX Application Thread.
354+
* other than the JavaFX Application Thread
355355
*
356356
* @since 17
357357
*/

0 commit comments

Comments
 (0)