|
From: Yannick M. <yan...@fa...> - 2005-01-18 11:08:07
|
Pieter Coucke <pieter.coucke <at> onthoo.com> writes: > I browsed a bit through the Spring source code and have some remarks > about possible code improvements. > > 1) JavaScriptUtils can be replaced with > StringEscapeUtils.escapeJavaScript(), which is in commons-lang 2.0 > (apparently the current commons-lang version is an old one where this > class isn't included) > > 2) HtmlUtils can be replaced with StringEscapeUtils.escapeHtml() Please read the following: http://tinyurl.com/66lny Right now, Spring is not dependent on commons-lang, and I certainly hope it will stay that way. *Dependencies are EVIL* I don't think any spring user has any desire to have to include 10mb of commons-this, commons-that just to run their hello world spring application ( see cocoon for one of the scariest examples ) |