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

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.119 by jsr166, Sat May 6 06:49:46 2017 UTC vs.
Revision 1.120 by jsr166, Sun Oct 22 17:44:03 2017 UTC

# Line 1 | Line 1
1   /*
2 < * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2 > * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4   *
5   * This code is free software; you can redistribute it and/or modify it
# Line 26 | Line 26
26   package java.util;
27  
28   import java.util.function.Consumer;
29 + import jdk.internal.misc.SharedSecrets;
30  
31   /**
32   * An unbounded priority {@linkplain Queue queue} based on a priority heap.
# Line 795 | Line 796 | public class PriorityQueue<E> extends Ab
796          // Read in (and discard) array length
797          s.readInt();
798  
799 +        SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size);
800          queue = new Object[size];
801  
802          // Read in all elements.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines