[Schmitzm-commits] r2355 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 12 18:36:49 CEST 2013
Author: mojays
Date: 2013-07-12 18:36:48 +0200 (Fri, 12 Jul 2013)
New Revision: 2355
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/StringTokenizerQuoted.java
Log:
StringTokenizerQuoted
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/StringTokenizerQuoted.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/StringTokenizerQuoted.java 2013-07-08 12:55:39 UTC (rev 2354)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/StringTokenizerQuoted.java 2013-07-12 16:36:48 UTC (rev 2355)
@@ -31,9 +31,7 @@
import java.util.StringTokenizer;
-import org.apache.commons.lang.StringUtils;
-
/**
* A {@link StringTokenizer} which supports quoted tokens.<br>
* <b>Note:<b><br>
@@ -173,7 +171,11 @@
* Checks whether a token in in quotes.
*/
protected boolean isTokenInQuotes(String token) {
- token = StringUtils.trimToEmpty(token);
+// Avoid dependency to external Apache Lib
+// token = StringUtils.trimToEmpty(token);
+ if ( token == null )
+ token = "";
+ token = token.trim();
// // if token starts and ends with delimiter then
// if ( token.length() > 1 && token.startsWith(quote) && token.endsWith(quote) )
More information about the Schmitzm-commits
mailing list