changeset 2139:f550745ae62f

[Findbugs] box isn't initialized in com.sun.javafx.scene.control.skin.CheckBoxSkin.updateChildren() when invoked from constructor for superclass
author jgiles
date Fri, 04 Jan 2013 17:34:02 +1300
parents 36814b27de0e
children d951ced300ac
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/CheckBoxSkin.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/CheckBoxSkin.java	Fri Jan 04 17:30:49 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/CheckBoxSkin.java	Fri Jan 04 17:34:02 2013 +1300
@@ -40,13 +40,12 @@
  */
 public class CheckBoxSkin extends LabeledSkinBase<CheckBox, ButtonBehavior<CheckBox>> {
 
-    private StackPane box;
+    private final StackPane box = new StackPane();
     private StackPane innerbox;
 
     public CheckBoxSkin(CheckBox checkbox) {
         super(checkbox, new ButtonBehavior<CheckBox>(checkbox));
 
-        box = new StackPane();
         box.getStyleClass().setAll("box");
         innerbox = new StackPane();
         innerbox.getStyleClass().setAll("mark");