8ffa0b68c9fd3f722bee2bcd94b1d38151a0791d |
|
13-May-2013 |
Elliott Hughes <enh@google.com> |
Un-@hide various APIs. Bug: 3484927 Change-Id: I4cda326a31240135d883528d9cb976a9db084234
|
0d4daefcf389b6433a0af481ef44a84a2546541a |
|
21-May-2011 |
Elliott Hughes <enh@google.com> |
Suppress some FindBugs warnings. Also globally replace "for(" with "for (". Change-Id: I27fe17460e6745b9ca823f42e57c86fe8af31979
|
c3adcfb1339de546aed6e7ff00a7edb020b8a85b |
|
01-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add new java.lang.*.compare methods. Bug: 3484927 Change-Id: I1e1ddf9ea84144d737f4c419f37f9854671d267f
|
07f5a667bf722eac567e426314695800677191e3 |
|
14-Jan-2011 |
Elliott Hughes <enh@google.com> |
Remove an incorrect comment. Caliper says the current code performs best, on all combinations of VM and hardware. Change-Id: I8bd5f4ada45777137f78955b27f6d3d2d495cd4f
|
2fc5dcd5614f910f25d794d272834752a72e63b1 |
|
09-Dec-2010 |
Elliott Hughes <enh@google.com> |
Apply various Intellij quick fixes to java.lang. There's one real bug here: our Integer.toString was supposed to have a cache for small negative values, but an accidentally-introduced temporary meant we were never using the cached values. Other than that, this is just cleanup. Change-Id: I457f9bd166c9a029ba8b439f3bbfa926f9b84cc9
|
8890504f824eca28560987cc23d0b18e8a62bbaa |
|
26-Oct-2010 |
Elliott Hughes <enh@google.com> |
Fix Float.parseFloat (et cetera) javadoc. None of these constructors or decode/parse.*/valueOf methods throw NumberFormatException when passed null, so they shouldn't claim to do so. Bug: http://code.google.com/p/android/issues/detail?id=12114 Change-Id: I813cad4457d5db11617b615488efa8f5b4beb1cf
|
1f07ea29bc2d334c55c16227582a7795b8c117c1 |
|
18-Oct-2010 |
Elliott Hughes <enh@google.com> |
Give every NumberFormatException a useful detail message. Bug: 3095335 Change-Id: If0409c6328c2fa2a35e5027e20b4786fe87e693b
|
82a495ad44d76aac37f54bbbe7c31608d1054f84 |
|
31-Aug-2010 |
Elliott Hughes <enh@google.com> |
Move Integer and Long's toString methods into a new class. I've reverted the old optimizations that used shifting and addition instead of multiplication, because that's been slower for a while now. I've also switched to more consistently using DIGITS. Otherwise, this code is unchanged. I've also changed Float.toHexString to use StringBuilder.append(int) instead of calling Integer.toString manually (with an eye to taking advantage of future more efficient implementations of StringBuilder.append(int)). [cherry-pick of 6151feb53344092a7fb7e1e3f417d23adaf2f6c2 from dalvik-dev to gingerbread; plus build fix] Bug: 2302920 Change-Id: I4d65d98b79ac299208102f0753960727b77e81ce
|
6151feb53344092a7fb7e1e3f417d23adaf2f6c2 |
|
31-Aug-2010 |
Elliott Hughes <enh@google.com> |
Move Integer and Long's toString methods into a new class. I've reverted the old optimizations that used shifting and addition instead of multiplication, because that's been slower for a while now. I've also switched to more consistently using DIGITS. Otherwise, this code is unchanged. I've also changed Float.toHexString to use StringBuilder.append(int) instead of calling Integer.toString manually (with an eye to taking advantage of future more efficient implementations of StringBuilder.append(int)). Bug: 2302920 Change-Id: I4244081456baf29aefbf974ca7220fdba5656e1d
|
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 |
|
13-May-2010 |
Elliott Hughes <enh@google.com> |
Remove all trailing whitespace from the dalvik team-maintained parts of libcore. Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
|
438d9883775e6ee31c097e2103a25571d2426cd9 |
|
09-Mar-2010 |
Elliott Hughes <enh@google.com> |
Minor documentation improvements. Based on user-submitted bugs that were just misunderstandings, plus implementation bugs caused by the intended behavior being somewhat subtle. Change-Id: Ic2606b5e57dadc95a35c2d0a977c01434a2fa28a
|
ccb052344fadac2153c1ec998eb70a8dc41c8da1 |
|
20-Dec-2009 |
Elliott Hughes <enh@google.com> |
Fix Long.toBinaryString, Long.toHexString, and Long.toOctalString for negative values. Although (int) -1 == (long) -1, Integer.toXString produces a shorter result than Long.toXString should.
|
9e13cc8ad982ba191400889bb8e5248a1933d45e |
|
17-Dec-2009 |
Joshua Bloch <jjb@google.com> |
Fixed a bug int the new version of Long.reverse introduce in change Id6bd7c81. The corresponding code in Hacker's Delight is written in C, which supports unsigned numbers. In Java, it's essential to use explicit unsigned shifts, but I neglected to do so. This bug was caught by jtreg test java.lang.Long.BitTwiddle (which I wrote in 2003). This preexisting test serves as the regression test for this change.
|
726ac583d69b37db03c6279af5b36df7b837ede1 |
|
15-Dec-2009 |
Joshua Bloch <jjb@google.com> |
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.
|
4fefecee9d4a5d2a4510f516b4015607b19e8d09 |
|
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
|
f5597e626ecf7949d249dea08c1a2964d890ec11 |
|
25-Jul-2009 |
Jesse Wilson <jessewilson@google.com> |
Integrate luni module (but not tests) to Harmony r772995. Notable changes - Stripped "@since Android 1.0" from many files. Most files are now 100% the same in Dalvik and Harmony. - AbstractStringBuilder.reverse() supports surrogates - AbstractStringBuilder shares less to waste less memory - Bitset optimized - BufferedInputStream changed to support unsynchronized close() - BufferedOutputStream does flushInternal - BufferedReader supports EBCDIC NEL - Collections.synchronizedList().indexOf() does a copy for more concurrency - Classes in nio module changed: DatagramChannelImpl, SocketChannelImpl and ServerSocketChannelImpl (these depend on internal APIs changed in this update) - DataInputStream/DataOutputStream now use a small buffer to limit the number of times the underlying stream is accessed - Date now has a minutes offset, more efficient toString() - ExposedByteArrayInputStream: new internal class - DeleteOnExit moved to top-level class - FileDescriptor.isValid() now non-native - Float, Double lessThan optimized (fix for compare(-0.0F, 0.0F) still pending) - FileURLConnection now guesses content types from streams - HashMap iterator changes - Hashtable iterator changes - INetworkSystem - removes bind2(), createMulticastSocket, sendStream(), - renames createSocket to createStreamSocket - JarURLConnection rewritten - LinkedHashMap: new iterator - Locale, Currency, TimeZone: now use ICU in Harmony, plain Java in Dalvik - ObjectInputStream: Accessor objects in Harmony, direct native in Dalvik - ProxyClassFile - many changes - String - optimized ascii for toLowerCase, toUpperCase, compare - Timer - rewritten - TreeMap - rewritten - URLClassLoader - new - URLConnection - new guessContentTypeFromStream(), uses org.apache.harmony.awt.www.content to lookup content type handlers
|
adc854b798c1cfe3bfd4c27d68d5cee38ca617da |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
1c0fed63c71ddb230f3b304aac12caffbedf2f21 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
dd828f42a5c83b4270d4fbf6fce2da1878f1e84a |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
|
fdb2704414a9ed92394ada0d1395e4db86889465 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|