commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject [LANG] unnecessary boxing in StringEscapeUtils etc.
Date Wed, 18 May 2011 13:53:57 GMT
I'm not happy with the boxing that is often needed to create a Range
of int or long, e.g. in StringEscapeUtils.

Seems to me that the UnicodeEscaper and NumericEntityEscaper classes
should require ints rather than a Range, as this would cut down on the
boxing and unboxing that is currently needed, as well as the extra
code needed to provide comparisons etc.

Or, there could be a specialised IntRange class using int to provide
the functionality.

These changes are new to 3.0, so could be fixed now without backward
compat. problems.

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


Mime
View raw message