[Schmitzm-commits] r1704 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 31 18:50:01 CEST 2011


Author: alfonx
Date: 2011-08-31 18:50:00 +0200 (Wed, 31 Aug 2011)
New Revision: 1704

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:


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:22:47 UTC (rev 1703)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2011-08-31 16:50:00 UTC (rev 1704)
@@ -1806,13 +1806,15 @@
 		if (str == null)
 			return null;
 		String trimmedLowcase = removeWhitespacesToEmpty(str.toLowerCase()).trim();
-		if (trimmedLowcase.startsWith("n"))
+		if (trimmedLowcase.startsWith("no"))
 			return false;
+		if (trimmedLowcase.startsWith("false"))
+			return false;
 		if (trimmedLowcase.startsWith("0"))
 			return false;
-		if (trimmedLowcase.startsWith("y"))
+		if (trimmedLowcase.startsWith("yes"))
 			return true;
-		if (trimmedLowcase.startsWith("j"))
+		if (trimmedLowcase.startsWith("ja"))
 			return true;
 		if (trimmedLowcase.startsWith("1"))
 			return true;
@@ -1822,6 +1824,8 @@
 			return false;
 		if (trimmedLowcase.contains("vorhanden"))
 			return true;
+		if (trimmedLowcase.contains("existie"))
+			return true;
 		// Default
 		return null;
 	}



More information about the Schmitzm-commits mailing list