changeset 2146:81b9d4acd03e

Backed out changeset: e026e37b8c0b
author jgiles
date Fri, 04 Jan 2013 22:41:17 +1300
parents 1c7f920c9725
children da1162caf687 c610fbaec190
files javafx-util-converter/src/javafx/util/converter/BooleanStringConverter.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-util-converter/src/javafx/util/converter/BooleanStringConverter.java	Fri Jan 04 18:24:23 2013 +1300
+++ b/javafx-util-converter/src/javafx/util/converter/BooleanStringConverter.java	Fri Jan 04 22:41:17 2013 +1300
@@ -37,13 +37,13 @@
     @Override public Boolean fromString(String value) {
         // If the specified value is null or zero-length, return null
         if (value == null) {
-            return Boolean.FALSE;
+            return null;
         }
 
         value = value.trim();
 
         if (value.length() < 1) {
-            return Boolean.FALSE;
+            return null;
         }
 
         return Boolean.valueOf(value);
@@ -53,7 +53,7 @@
     @Override public String toString(Boolean value) {
         // If the specified value is null, return a zero-length String
         if (value == null) {
-            return "false";
+            return "";
         }
 
         return value.toString();