OSDN Git Service

Rewrote all the toString and bit twiddling code in Integer and Long using
authorJoshua Bloch <jjb@google.com>
Tue, 15 Dec 2009 00:32:33 +0000 (16:32 -0800)
committerJoshua Bloch <jjb@google.com>
Wed, 16 Dec 2009 02:39:55 +0000 (18:39 -0800)
commit1a9530e36217e33deb9d78a790bcfb3d93a6b064
tree0544a3e07df3fea7e8189a1401618dda988fbda8
parentf0e054b5871579df9cc0aa5d7c63e16e1d7939fb
Rewrote all the toString and bit twiddling code in Integer and Long using
state-of-the-art recipes.  The resulting code is much faster than what it
replaced, as well as being more concise. While I was in the neighborhood
I also cleaned up a few other things in the boxed primitives (TYPE fields,
small-value caches, etc.).

Addressed review comments.
libcore/luni/src/main/java/java/lang/Boolean.java
libcore/luni/src/main/java/java/lang/Byte.java
libcore/luni/src/main/java/java/lang/Character.java
libcore/luni/src/main/java/java/lang/Double.java
libcore/luni/src/main/java/java/lang/Float.java
libcore/luni/src/main/java/java/lang/Integer.java
libcore/luni/src/main/java/java/lang/Long.java
libcore/luni/src/main/java/java/lang/Short.java
libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/CharacterImplTest.java