summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/java/lang/Byte.java
Commit message (Collapse)AuthorAgeFilesLines
* Un-@hide various APIs.Elliott Hughes2013-05-131-1/+0
| | | | | Bug: 3484927 Change-Id: I4cda326a31240135d883528d9cb976a9db084234
* Suppress some FindBugs warnings.Elliott Hughes2011-05-201-2/+3
| | | | | | Also globally replace "for(" with "for (". Change-Id: I27fe17460e6745b9ca823f42e57c86fe8af31979
* Add new java.lang.*.compare methods.Elliott Hughes2011-02-281-1/+11
| | | | | Bug: 3484927 Change-Id: I1e1ddf9ea84144d737f4c419f37f9854671d267f
* Use int.class instead of Integer.TYPE (et cetera) for clarity.Elliott Hughes2011-02-081-1/+1
| | | | | | I've also removed some small amount of duplication and a few unused imports. Change-Id: Ie52477484bade74c80a348ad1261b596f9053cf6
* Add an @hidden Byte.toHexString that does the right thing, and use it.Elliott Hughes2011-01-201-0/+8
| | | | | | | | Turns out most callers don't actually give a toss about case anyway, since they're just for debugging output. Bug: 3371169 Change-Id: Ib8dc079be2dcbf6f2415ecb9b71d034ee71f68eb
* Apply various Intellij quick fixes to java.lang.Elliott Hughes2010-12-081-1/+1
| | | | | | | | 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
* Fix Float.parseFloat (et cetera) javadoc.Elliott Hughes2010-10-251-14/+10
| | | | | | | | 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
* Give every NumberFormatException a useful detail message.Elliott Hughes2010-10-181-12/+5
| | | | | Bug: 3095335 Change-Id: If0409c6328c2fa2a35e5027e20b4786fe87e693b
* Rewrote all the toString and bit twiddling code in Integer and Long usingJoshua Bloch2009-12-151-12/+13
| | | | | | | | | 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.
* Integrate luni module (but not tests) to Harmony r772995.Jesse Wilson2009-07-241-39/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+320
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-320/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-127/+102
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+345