You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jens Dietrich <j....@massey.ac.nz> on 2013/10/15 22:10:42 UTC

constants (static final fields) defined using wrapper types (for example, in org.apache.commons.lang.math.NumberUtils)

Hi,

I have a quick question regarding the use of constants in Apache Commons - in some classes/interfaces like org.apache.commons.lang.math.NumberUtils
some constants are defined using wrapper types and not primitive types. What are the reasons for this? 

The background of my question is that I am doing some research on binary vs source compatibility in Java. One such issue is constant inlining, and I try to find out whether engineers consciously use wrapper types to prevent inlining. 

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