changeset 2136:294e7d3302ec

[Findbugs] Switch statement found in com.sun.javafx.scene.control.behavior.TextAreaBehavior.mousePressed(MouseEvent) where default case is missing
author jgiles
date Fri, 04 Jan 2013 17:30:01 +1300
parents 8d529aa163ac
children 8eaa6d17d913
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TextAreaBehavior.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TextAreaBehavior.java	Fri Jan 04 17:22:30 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TextAreaBehavior.java	Fri Jan 04 17:30:01 2013 +1300
@@ -356,9 +356,10 @@
                     // to indicate the text can be dragged, etc.
                 } else if (!(e.isControlDown() || e.isAltDown() || e.isShiftDown() || e.isMetaDown())) {
                     switch (e.getClickCount()) {
-                      case 1: skin.positionCaret(hit, false, false); break;
-                      case 2: mouseDoubleClick(hit); break;
-                      case 3: mouseTripleClick(hit); break;
+                        case 1: skin.positionCaret(hit, false, false); break;
+                        case 2: mouseDoubleClick(hit); break;
+                        case 3: mouseTripleClick(hit); break;
+                        default: // no-op
                     }
                 } else if (e.isShiftDown() && !(e.isControlDown() || e.isAltDown() || e.isMetaDown()) && e.getClickCount() == 1) {
                     // didn't click inside the selection, so select