ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/HashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/HashMap.java (file contents):
Revision 1.8 by jsr166, Mon Oct 1 00:10:53 2018 UTC vs.
Revision 1.9 by jsr166, Sun Nov 11 16:27:28 2018 UTC

# Line 34 | Line 34 | import java.util.function.BiConsumer;
34   import java.util.function.BiFunction;
35   import java.util.function.Consumer;
36   import java.util.function.Function;
37 < import jdk.internal.misc.SharedSecrets;
37 > // OPENJDK import jdk.internal.access.SharedSecrets;
38  
39   /**
40   * Hash table based implementation of the {@code Map} interface.  This
# Line 1444 | Line 1444 | public class HashMap<K,V> extends Abstra
1444  
1445              // Check Map.Entry[].class since it's the nearest public type to
1446              // what we're actually creating.
1447 <            SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Map.Entry[].class, cap);
1447 >            jsr166.Platform.checkArray(s, Map.Entry[].class, cap);
1448              @SuppressWarnings({"rawtypes","unchecked"})
1449              Node<K,V>[] tab = (Node<K,V>[])new Node[cap];
1450              table = tab;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines