Integer.parseInt

Benedict Elliott Smith lists at laerad.com
Wed Apr 11 14:18:01 UTC 2012


Hi,

Looking at the source code, it doesn't appear as though there is any reason
to require the input be a String - only length() and charAt() are called,
which are both declared by CharSequence. Is there a reason I can't fathom,
or was it an oversight? It would be nice to widen the type for this (and
potentially other equivalent methods).



More information about the core-libs-dev mailing list