An item of feedback from Joerg Wassmer's comment to a Javalobby article:

(http://java.dzone.com/articles/first-look-at-commons-lang-3)

"normalizeSpace" should by called "collapse" or alike. "Normalizing"
usually is only the task where the string is getting trimmed, and
where each whitespace and control character is getting replaced by a
space. Normalizing plus the replacement of subsequent whitespaces by a
single space is called "collapsing". See
javax.xml.bind.annotation.adapters.CollapsedStringAdapter and
NormalizedStringAdapter.

Referring to StringUtils.

I don't know about the 'usually', but I do like the name collapse.

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to