diff options
author | Anthony Green <green@redhat.com> | 2005-09-14 16:51:59 +0000 |
---|---|---|
committer | Anthony Green <green@redhat.com> | 2005-09-14 16:51:59 +0000 |
commit | 246a3f3780b9cf339a5c47f35c5b3d7b118524b2 (patch) | |
tree | c0691444be1761bf2f444893aa340fdcb1fa1117 /gnu/java/beans/decoder | |
parent | e488bc8918444e483d6ed403a0390844201db1c5 (diff) | |
download | classpath-246a3f3780b9cf339a5c47f35c5b3d7b118524b2.tar.gz |
2005-09-14 Anthony Green <green@redhat.com>
* javax/swing/plaf/basic/BasicFileChooserUI.java,
javax/swing/filechooser/FileSystemView.java,
java/util/logging/LogManager.java,
gnu/xml/libxmlj/dom/GnomeDocument.java,
gnu/xml/aelfred2/JAXPFactory.java,
gnu/java/security/x509/ext/Extension.java,
gnu/java/security/x509/ext/BasicConstraints.java,
gnu/java/rmi/server/RMIObjectInputStream.java,
gnu/java/rmi/dgc/DGCImpl_Stub.java,
gnu/java/beans/decoder/BooleanHandler.java: Use
Boolean.valueOf() instead of new Boolean.
Diffstat (limited to 'gnu/java/beans/decoder')
-rw-r--r-- | gnu/java/beans/decoder/BooleanHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/java/beans/decoder/BooleanHandler.java b/gnu/java/beans/decoder/BooleanHandler.java index a34fe346e..a675e8c90 100644 --- a/gnu/java/beans/decoder/BooleanHandler.java +++ b/gnu/java/beans/decoder/BooleanHandler.java @@ -57,10 +57,10 @@ class BooleanHandler extends SimpleHandler protected Object parse(String number) throws AssemblyException { if (number.equals("true")) - return new Boolean(true); + return Boolean.TRUE; if (number.equals("false")) - return new Boolean(false); + return Boolean.FALSE; throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); } |