diff options
| author | Tobias Thierer <tobiast@google.com> | 2018-10-31 16:06:30 +0000 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2018-10-31 16:23:20 +0000 |
| commit | ea3c0462beca3ae3cc56b2e7433b2af4ddb35d6e (patch) | |
| tree | 9f3937a8092210f734d4a211eb6d7c261773dd42 /annotations/generate_annotated_java_files.py | |
| parent | bd127ea3edd5dca3b13b51cfa3da759f12693ef8 (diff) | |
De-flake OldAttributedStringTest.
The test was using WeakHashMap without good reason. In most cases, the
WeakHashMap was empty but in one case, the test relied on the map
remaining nonempty for a time but no strong reference to the key was
kept. This made the test necessarily flaky.
This CL de-flakes the test by switching to non-weak Map
implementations (Collections.emptyMap(), .singletonMap()).
Fixes: 62527942
Test: vogar libcore/luni/src/test/java/libcore/java/text/OldAttributedStringTest.java
Change-Id: Id676c866fbb64f81156137cdb042351e02e06589
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
