summaryrefslogtreecommitdiff
path: root/ojluni/annotations/sdk/nullability/java/util/AbstractMap.annotated.java
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2018-10-31 16:06:30 +0000
committerTobias Thierer <tobiast@google.com>2018-10-31 16:23:20 +0000
commitea3c0462beca3ae3cc56b2e7433b2af4ddb35d6e (patch)
tree9f3937a8092210f734d4a211eb6d7c261773dd42 /ojluni/annotations/sdk/nullability/java/util/AbstractMap.annotated.java
parentbd127ea3edd5dca3b13b51cfa3da759f12693ef8 (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 'ojluni/annotations/sdk/nullability/java/util/AbstractMap.annotated.java')
0 files changed, 0 insertions, 0 deletions