84dc741f553e9f1f98456fe983bff2fb9914d727 |
20-Aug-2013 |
Elliott Hughes <enh@google.com> |
Fix java.util.Scanner bugs. Also improve the documentation for java.util.regex.Matcher and unify the Scanner tests. Bug: 10310707 Bug: https://code.google.com/p/android/issues/detail?id=40555 (cherry picked from commit 56ff05b16d4a82bc2386082409c78c3d94e0df01) Change-Id: I4d7ff44a77768821970c9bab560d5facdb75e1b9
ests/java/util/ScannerTest.java
|
5c8452e1fca6a47ecbe71ac7f71e378b3be16ec7 |
27-Jun-2013 |
Elliott Hughes <enh@google.com> |
Improve Scanner performance. We really don't want to compute a new regular expression and compile it into a new Pattern every time we call nextInt (and friends). Adding a single-element cache (flushed if the Scanner's locale changes) makes this 100x faster. There still exists a pathological case where you switch back and forth between bases. Also improve the documentation to make it clearer that you really don't want to use this awful class anyway. Also bring back a few more of the tests we lost in the gingerbread timeframe. Bug: https://code.google.com/p/android/issues/detail?id=57050 Change-Id: Id6095682fb44abae2887dda29dd3d32ac777c68f
ests/java/util/ScannerParseLargeFileBenchmarkTest.java
ests/java/util/ScannerTest.java
|
ebdccfc7af8ac92f2b0ee158bbedf8d345baa49d |
02-May-2013 |
Elliott Hughes <enh@google.com> |
Add the harmony BufferedReaderTest. Bug: 8778372 Change-Id: I10145bdfd90320da7d3ecd08404c4625495cec32
ests/java/io/BufferedReaderTest.java
|
b2da4ac2b5c8ddedf5e08aed31481471e408da5f |
24-Apr-2013 |
Elliott Hughes <enh@google.com> |
Reads from /dev/urandom can't really block. Move RandomBitsSupplier into its only caller. Bring over the harmony UUIDTest. Switch the SHA1_Data constants over to the more modern static import idiom. Bug: https://code.google.com/p/android/issues/detail?id=54168 Change-Id: I4e659e252ab43f481f39d003cf373100c84013d7
ests/java/util/UUIDTest.java
|