Skip to content

Commit

Permalink
8289171: Blank final field 'dialog' may not have been initialized in …
Browse files Browse the repository at this point in the history
…scene.control.Dialog:521

Reviewed-by: nlisker
  • Loading branch information
andy-goryachev-oracle authored and nlisker committed Jul 7, 2022
1 parent 28b8220 commit 4dcd9e0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -249,7 +249,7 @@ public class Dialog<R> implements EventTarget {
*
**************************************************************************/

final FXDialog dialog;
final FXDialog dialog = new HeavyweightDialog(this);

private boolean isClosing;

Expand All @@ -265,7 +265,6 @@ public class Dialog<R> implements EventTarget {
* Creates a dialog without a specified owner.
*/
public Dialog() {
this.dialog = new HeavyweightDialog(this);
setDialogPane(new DialogPane());
initModality(Modality.APPLICATION_MODAL);
}
Expand Down

1 comment on commit 4dcd9e0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.