[Schmitzm-commits] r1315 - trunk/src/schmitzm/lang
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 29 19:31:44 CET 2010
Author: mojays
Date: 2010-11-29 19:31:44 +0100 (Mon, 29 Nov 2010)
New Revision: 1315
Modified:
trunk/src/schmitzm/lang/LangUtil.java
Log:
Modified: trunk/src/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/src/schmitzm/lang/LangUtil.java 2010-11-28 22:20:02 UTC (rev 1314)
+++ trunk/src/schmitzm/lang/LangUtil.java 2010-11-29 18:31:44 UTC (rev 1315)
@@ -119,6 +119,15 @@
return "null";
return object.getClass().getSimpleName();
}
+
+ /**
+ * Returns a truncated string or empty string if the input string is null.
+ */
+ public static String getTrimmedString(String string) {
+ if ( string == null )
+ return "";
+ return string.trim();
+ }
/**
* Returns the current time as formatted string.
More information about the Schmitzm-commits
mailing list