changeset 2145:1c7f920c9725

[Findbugs] javafx.util.converter.CharacterStringConverter.fromString(String) invokes inefficient new Character(char) constructor; use Character.valueOf(char) instead
author jgiles
date Fri, 04 Jan 2013 18:24:23 +1300
parents e026e37b8c0b
children 81b9d4acd03e
files javafx-util-converter/src/javafx/util/converter/CharacterStringConverter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-util-converter/src/javafx/util/converter/CharacterStringConverter.java	Fri Jan 04 18:24:15 2013 +1300
+++ b/javafx-util-converter/src/javafx/util/converter/CharacterStringConverter.java	Fri Jan 04 18:24:23 2013 +1300
@@ -46,7 +46,7 @@
             return null;
         }
 
-        return new Character(value.charAt(0));
+        return Character.valueOf(value.charAt(0));
     }
 
     /** {@inheritDoc} */