[Schmitzm-commits] r1705 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 2 18:41:28 CEST 2011
Author: alfonx
Date: 2011-09-02 18:41:28 +0200 (Fri, 02 Sep 2011)
New Revision: 1705
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
Fixed yes/no test
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2011-08-31 16:50:00 UTC (rev 1704)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2011-09-02 16:41:28 UTC (rev 1705)
@@ -1808,6 +1808,8 @@
String trimmedLowcase = removeWhitespacesToEmpty(str.toLowerCase()).trim();
if (trimmedLowcase.startsWith("no"))
return false;
+ if (trimmedLowcase.equals("n"))
+ return false;
if (trimmedLowcase.startsWith("false"))
return false;
if (trimmedLowcase.startsWith("0"))
@@ -1816,6 +1818,10 @@
return true;
if (trimmedLowcase.startsWith("ja"))
return true;
+ if (trimmedLowcase.equals("y"))
+ return true;
+ if (trimmedLowcase.equals("j"))
+ return true;
if (trimmedLowcase.startsWith("1"))
return true;
if (trimmedLowcase.startsWith("true"))
More information about the Schmitzm-commits
mailing list