# HG changeset patch # User mduigou # Date 1367020551 25200 # Node ID 6e7adcd8cc1aca2800b0c041cb1f8d0b58e2ea36 # Parent 890485cafb8b931c9b26f553166dd00168b84767 7178639: Remove incorrect documentation from Deque.push(E e) Reviewed-by: duke diff --git a/src/share/classes/java/util/Deque.java b/src/share/classes/java/util/Deque.java --- a/src/share/classes/java/util/Deque.java +++ b/src/share/classes/java/util/Deque.java @@ -484,8 +484,7 @@ /** * Pushes an element onto the stack represented by this deque (in other * words, at the head of this deque) if it is possible to do so - * immediately without violating capacity restrictions, returning - * true upon success and throwing an + * immediately without violating capacity restrictions or throws an * IllegalStateException if no space is currently available. * *

This method is equivalent to {@link #addFirst}.