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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Aug 21 08:39:26 CEST 2011


Author: alfonx
Date: 2011-08-21 08:39:26 +0200 (Sun, 21 Aug 2011)
New Revision: 1682

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
Fixed https://trac.wikisquare.de/immobrain/ticket/125, vorhanden/nicht vorhanden wird zu true / false beim String -> Boolean parser

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-20 16:59:23 UTC (rev 1681)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2011-08-21 06:39:26 UTC (rev 1682)
@@ -1818,6 +1818,10 @@
 			return true;
 		if (trimmedLowcase.startsWith("true"))
 			return true;
+		if (trimmedLowcase.contains("nicht"))
+			return false;
+		if (trimmedLowcase.contains("vorhanden"))
+			return true;
 		// Default
 		return null;
 	}



More information about the Schmitzm-commits mailing list