Skip to content

Commit 92cefce

Browse files
hjohnkevinrushforth
authored andcommittedJul 16, 2022
8290393: Code sample in javadoc of ObservableValue flatMap is incorrect
Reviewed-by: kcr
1 parent 4959f1b commit 92cefce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎modules/javafx.base/src/main/java/javafx/beans/value/ObservableValue.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,16 @@ default ObservableValue<T> orElse(T constant) {
223223
*
224224
* // Assuming the listView is currently shown to the user, then:
225225
*
226-
* isShowing().getValue(); // Returns true
226+
* isShowing.getValue(); // Returns true
227227
*
228228
* listView.getScene().getWindow().hide();
229-
* isShowing().getValue(); // Returns false
229+
* isShowing.getValue(); // Returns false
230230
*
231231
* listView.getScene().getWindow().show();
232-
* isShowing().getValue(); // Returns true
232+
* isShowing.getValue(); // Returns true
233233
*
234234
* listView.getParent().getChildren().remove(listView);
235-
* isShowing().getValue(); // Returns false
235+
* isShowing.getValue(); // Returns false
236236
* }</pre>
237237
* Changes in any of the values of: the scene of {@code listView}, the window of that scene, or
238238
* the showing of that window, will update the boolean value {@code isShowing}.

0 commit comments

Comments
 (0)
Please sign in to comment.