Revision: 437
http://svn.sourceforge.net/japi/?rev=437&view=rev
Author: christianhujer
Date: 2007-06-25 07:10:30 -0700 (Mon, 25 Jun 2007)
Log Message:
-----------
Fixed bug which would return the wrong boolean value for localized boolean strings.
Modified Paths:
--------------
libs/argparser/trunk/src/net/sf/japi/io/args/converter/BooleanConverter.java
Modified: libs/argparser/trunk/src/net/sf/japi/io/args/converter/BooleanConverter.java
===================================================================
--- libs/argparser/trunk/src/net/sf/japi/io/args/converter/BooleanConverter.java 2007-06-25 14:01:47 UTC (rev 436)
+++ libs/argparser/trunk/src/net/sf/japi/io/args/converter/BooleanConverter.java 2007-06-25 14:10:30 UTC (rev 437)
@@ -61,7 +61,7 @@
}
for (final String s : ResourceBundle.getBundle("net.sf.japi.io.args.converter.Converter", locale).getString("java.lang.Boolean.false").split("\\s+")) {
if (s.equalsIgnoreCase(arg)) {
- return Boolean.TRUE;
+ return Boolean.FALSE;
}
}
throw new IllegalArgumentException(arg + " is not a valid String for a boolean.");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|