summaryrefslogtreecommitdiff
path: root/jsr166-tests
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2016-04-12 15:18:08 +0100
committerNarayan Kamath <narayan@google.com>2016-04-12 20:44:38 +0100
commit0ee1606ffb8586014fb3ea6e540c07d7180d9e9e (patch)
treeb10b26f9d07efb9512b7d8ffcebfbd7cd1b7f111 /jsr166-tests
parent9c6eef8cd47afe55cb4e8d1c096922aeb9003603 (diff)
ConcurrentHashMap: update API for keySet.
On Android M and earlier, keySet() returned a Set<K>. Changing the return type to a type that doesn't exist on previous releases is an incompatible change. We therefore revert it so that applications that compile against the Android N SDK will continue to work on older releases. Note that there is no API update that accompanies this change. Due to an asymmetry in doclava, this method is absent from the *api.txt files but *does* exist in the stubs. bug: 28099367 Change-Id: Ife90592847de1752cd33efdb2e7e0ec082df42fc
Diffstat (limited to 'jsr166-tests')
-rw-r--r--jsr166-tests/src/test/java/jsr166/ConcurrentHashMap8Test.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsr166-tests/src/test/java/jsr166/ConcurrentHashMap8Test.java b/jsr166-tests/src/test/java/jsr166/ConcurrentHashMap8Test.java
index 60de8b9de2..5949cbc202 100644
--- a/jsr166-tests/src/test/java/jsr166/ConcurrentHashMap8Test.java
+++ b/jsr166-tests/src/test/java/jsr166/ConcurrentHashMap8Test.java
@@ -300,7 +300,7 @@ public class ConcurrentHashMap8Test extends JSR166TestCase {
*/
public void testGetMappedValue() {
ConcurrentHashMap map = map5();
- assertNull(map.keySet().getMappedValue());
+ assertNull(((ConcurrentHashMap.KeySetView) map.keySet()).getMappedValue());
try {
map.keySet(null);
shouldThrow();