DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13367

StringUtil enhancement





------- Additional Comments From [EMAIL PROTECTED]  2003-01-20 18:07 -------
Proposed trimNull implementation:

/** Removes control characters, including whitespace, from both ends of this
string. Returns null if the string is empty (isEmpty(s) is true) or if it's null. 
  @param s the string to me trimmed.
  @return trim(s), or null if it's empty. */
public String trimNull(String s) {
    String ts = trim(s);
    return (ts == null || ts.length() == 0 ? null : ts);
}

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to