changeset 6386:2cc8868ef8c6

RT-35957 Bindings class spits out a lot of unneeded log messages
author Martin Sladecek <martin.sladecek@oracle.com>
date Thu, 27 Feb 2014 14:25:27 +0100
parents 838fa4d8e8c8
children 21c34af9c73c
files modules/base/src/main/java/com/sun/javafx/binding/SelectBinding.java modules/base/src/main/java/javafx/beans/binding/Bindings.java modules/base/src/main/java/javafx/beans/property/BooleanProperty.java modules/base/src/main/java/javafx/beans/property/DoubleProperty.java modules/base/src/main/java/javafx/beans/property/FloatProperty.java modules/base/src/main/java/javafx/beans/property/IntegerProperty.java modules/base/src/main/java/javafx/beans/property/LongProperty.java
diffstat 7 files changed, 32 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/modules/base/src/main/java/com/sun/javafx/binding/SelectBinding.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/com/sun/javafx/binding/SelectBinding.java	Thu Feb 27 14:25:27 2014 +0100
@@ -146,7 +146,7 @@
             try {
                 return (Boolean)observable.getValue();
             } catch (NullPointerException ex) {
-                Logging.getLogger().info("Value of select binding is null, returning default value", ex);
+                Logging.getLogger().fine("Value of select binding is null, returning default value", ex);
             } catch (ClassCastException ex) {
                 Logging.getLogger().warning("Value of select-binding has wrong type, returning default value.", ex);
             }
@@ -197,7 +197,7 @@
             try {
                 return ((Number)observable.getValue()).doubleValue();
             } catch (NullPointerException ex) {
-                Logging.getLogger().info("Value of select binding is null, returning default value", ex);
+                Logging.getLogger().fine("Value of select binding is null, returning default value", ex);
             } catch (ClassCastException ex) {
                 Logging.getLogger().warning("Exception while evaluating select-binding", ex);
             }
@@ -248,7 +248,7 @@
             try {
                 return ((Number)observable.getValue()).floatValue();
             } catch (NullPointerException ex) {
-                Logging.getLogger().info("Value of select binding is null, returning default value", ex);
+                Logging.getLogger().fine("Value of select binding is null, returning default value", ex);
             } catch (ClassCastException ex) {
                 Logging.getLogger().warning("Exception while evaluating select-binding", ex);
             }
@@ -299,7 +299,7 @@
             try {
                 return ((Number)observable.getValue()).intValue();
             } catch (NullPointerException ex) {
-                Logging.getLogger().info("Value of select binding is null, returning default value", ex);
+                Logging.getLogger().fine("Value of select binding is null, returning default value", ex);
             } catch (ClassCastException ex) {
                 Logging.getLogger().warning("Exception while evaluating select-binding", ex);
             }
@@ -350,7 +350,7 @@
             try {
                 return ((Number)observable.getValue()).longValue();
             } catch (NullPointerException ex) {
-                Logging.getLogger().info("Value of select binding is null, returning default value", ex);
+                Logging.getLogger().fine("Value of select binding is null, returning default value", ex);
             } catch (ClassCastException ex) {
                 Logging.getLogger().warning("Exception while evaluating select-binding", ex);
             }
@@ -498,7 +498,7 @@
                         if (ex instanceof  IllegalStateException) {
                             logger.warning("Property '" + propertyNames[i] + "' does not exist in " + obj.getClass(), ex);
                         } else if (ex instanceof NullPointerException) {
-                            logger.info("Property '" + propertyNames[i] + "' in " + properties[i] + " is null", ex);
+                            logger.fine("Property '" + propertyNames[i] + "' in " + properties[i] + " is null", ex);
                         } else {
                             Logging.getLogger().warning("", ex);
                         }
@@ -512,7 +512,7 @@
             updateDependencies();
             final ObservableValue<?> result = properties[n-1];
             if (result == null) {
-                Logging.getLogger().info("Property '" + propertyNames[n-1] + "' in " + properties[n-1] + " is null", new NullPointerException());
+                Logging.getLogger().fine("Property '" + propertyNames[n-1] + "' in " + properties[n-1] + " is null", new NullPointerException());
             }
             return result;
         }
--- a/modules/base/src/main/java/javafx/beans/binding/Bindings.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/binding/Bindings.java	Thu Feb 27 14:25:27 2014 +0100
@@ -6211,7 +6211,7 @@
                 try {
                     final Boolean value = op.get(index);
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value;
                     }
@@ -6275,7 +6275,7 @@
                 try {
                     final Boolean value = op.get(index.intValue());
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value;
                     }
@@ -6328,7 +6328,7 @@
                 try {
                     final Number value = op.get(index);
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.doubleValue();
                     }
@@ -6392,7 +6392,7 @@
                 try {
                     final Number value = op.get(index.intValue());
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.doubleValue();
                     }
@@ -6445,7 +6445,7 @@
                 try {
                     final Number value = op.get(index);
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.floatValue();
                     }
@@ -6509,7 +6509,7 @@
                 try {
                     final Number value = op.get(index.intValue());
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.floatValue();
                     }
@@ -6562,7 +6562,7 @@
                 try {
                     final Number value = op.get(index);
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.intValue();
                     }
@@ -6626,7 +6626,7 @@
                 try {
                     final Number value = op.get(index.intValue());
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.intValue();
                     }
@@ -6679,7 +6679,7 @@
                 try {
                     final Number value = op.get(index);
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.longValue();
                     }
@@ -6743,7 +6743,7 @@
                 try {
                     final Number value = op.get(index.intValue());
                     if (value == null) {
-                        Logging.getLogger().info("List element is null, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("List element is null, returning default value instead.", new NullPointerException());
                     } else {
                         return value.longValue();
                     }
@@ -7503,7 +7503,7 @@
                 try {
                     final Boolean value = op.get(key);
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value;
                     }
@@ -7557,7 +7557,7 @@
                 try {
                     final Boolean value = op.get(key.getValue());
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value;
                     }
@@ -7611,7 +7611,7 @@
                 try {
                     final Number value = op.get(key);
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.doubleValue();
                     }
@@ -7665,7 +7665,7 @@
                 try {
                     final Number value = op.get(key.getValue());
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.doubleValue();
                     }
@@ -7719,7 +7719,7 @@
                 try {
                     final Number value = op.get(key);
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.floatValue();
                     }
@@ -7773,7 +7773,7 @@
                 try {
                     final Number value = op.get(key.getValue());
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.floatValue();
                     }
@@ -7827,7 +7827,7 @@
                 try {
                     final Number value = op.get(key);
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.intValue();
                     }
@@ -7881,7 +7881,7 @@
                 try {
                     final Number value = op.get(key.getValue());
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.intValue();
                     }
@@ -7935,7 +7935,7 @@
                 try {
                     final Number value = op.get(key);
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.longValue();
                     }
@@ -7989,7 +7989,7 @@
                 try {
                     final Number value = op.get(key.getValue());
                     if (value == null) {
-                        Logging.getLogger().info("Element not found in map, returning default value instead.", new NullPointerException());
+                        Logging.getLogger().fine("Element not found in map, returning default value instead.", new NullPointerException());
                     } else {
                         return value.longValue();
                     }
--- a/modules/base/src/main/java/javafx/beans/property/BooleanProperty.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/property/BooleanProperty.java	Thu Feb 27 14:25:27 2014 +0100
@@ -71,7 +71,7 @@
     @Override
     public void setValue(Boolean v) {
         if (v == null) {
-            Logging.getLogger().info("Attempt to set boolean property to null, using default value instead.", new NullPointerException());
+            Logging.getLogger().fine("Attempt to set boolean property to null, using default value instead.", new NullPointerException());
             set(false);
         } else {
             set(v.booleanValue());
--- a/modules/base/src/main/java/javafx/beans/property/DoubleProperty.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/property/DoubleProperty.java	Thu Feb 27 14:25:27 2014 +0100
@@ -69,7 +69,7 @@
     @Override
     public void setValue(Number v) {
         if (v == null) {
-            Logging.getLogger().info("Attempt to set double property to null, using default value instead.", new NullPointerException());
+            Logging.getLogger().fine("Attempt to set double property to null, using default value instead.", new NullPointerException());
             set(0.0);
         } else {
             set(v.doubleValue());
--- a/modules/base/src/main/java/javafx/beans/property/FloatProperty.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/property/FloatProperty.java	Thu Feb 27 14:25:27 2014 +0100
@@ -63,7 +63,7 @@
     @Override
     public void setValue(Number v) {
         if (v == null) {
-            Logging.getLogger().info("Attempt to set float property to null, using default value instead.", new NullPointerException());
+            Logging.getLogger().fine("Attempt to set float property to null, using default value instead.", new NullPointerException());
             set(0.0f);
         } else {
             set(v.floatValue());
--- a/modules/base/src/main/java/javafx/beans/property/IntegerProperty.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/property/IntegerProperty.java	Thu Feb 27 14:25:27 2014 +0100
@@ -63,7 +63,7 @@
     @Override
     public void setValue(Number v) {
         if (v == null) {
-            Logging.getLogger().info("Attempt to set integer property to null, using default value instead.", new NullPointerException());
+            Logging.getLogger().fine("Attempt to set integer property to null, using default value instead.", new NullPointerException());
             set(0);
         } else {
             set(v.intValue());
--- a/modules/base/src/main/java/javafx/beans/property/LongProperty.java	Thu Feb 27 13:18:39 2014 +0100
+++ b/modules/base/src/main/java/javafx/beans/property/LongProperty.java	Thu Feb 27 14:25:27 2014 +0100
@@ -62,7 +62,7 @@
     @Override
     public void setValue(Number v) {
         if (v == null) {
-            Logging.getLogger().info("Attempt to set long property to null, using default value instead.", new NullPointerException());
+            Logging.getLogger().fine("Attempt to set long property to null, using default value instead.", new NullPointerException());
             set(0L);
         } else {
             set(v.longValue());