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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 29 15:54:38 CEST 2012


Author: alfonx
Date: 2012-08-29 15:54:38 +0200 (Wed, 29 Aug 2012)
New Revision: 2077

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
UTF \u0000 auch als Whitespace betrachten...

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2012-08-28 13:36:00 UTC (rev 2076)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java	2012-08-29 13:54:38 UTC (rev 2077)
@@ -33,9 +33,7 @@
 import java.awt.datatransfer.DataFlavor;
 import java.awt.datatransfer.StringSelection;
 import java.awt.datatransfer.Transferable;
-import java.awt.datatransfer.UnsupportedFlavorException;
 import java.io.ByteArrayOutputStream;
-import java.io.IOException;
 import java.io.PrintStream;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
@@ -2656,7 +2654,7 @@
 	 * Alle Zeilenumbrüche raus // Geschützte Leerzeichen weg // Tabulator ->
 	 * Leer
 	 */
-	final static String REMOVE_WHITESPACES_PATTERN_R = "[\\n|\\t|\\r|\\u0085|\\u2028|\\u2029|\\u00A0]";
+	final static String REMOVE_WHITESPACES_PATTERN_R = "[\\u0000\\n|\\t|\\r|\\u0085|\\u2028|\\u2029|\\u00A0]";
 	// final static Pattern REMOVE_WHITESPACES_PATTERN =
 	// RegexCache.getInstance().getPattern(REMOVE_WHITESPACES_PATTERN_R);
 	/**



More information about the Schmitzm-commits mailing list