Skip to content

Commit dc66113

Browse files
committed
1.6-BETA
1 parent 9b99512 commit dc66113

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/main/java/com/github/coderodde/util/LinkedList.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ public void push(E e) {
599599
*
600600
* @return the head of this list.
601601
* @throws NoSuchElementException if this list is empty.
602-
* @since 1.5
603602
*/
604603
@Override
605604
public E remove() {
@@ -718,7 +717,7 @@ public E removeFirst() {
718717
* element, it is unchanged.
719718
*
720719
* @param o element to be removed from this list, if present.
721-
* @return {@code true} only if the list contained the specified element.
720+
* @return {@code true} only if this list contained the specified element.
722721
*/
723722
@Override
724723
public boolean removeFirstOccurrence(Object o) {
@@ -779,7 +778,7 @@ public E removeLast() {
779778
* element, it is unchanged.
780779
*
781780
* @param o element to be removed from this list, if present.
782-
* @return {@code true} only if the list contained the specified element.
781+
* @return {@code true} only if this list contained the specified element.
783782
*/
784783
@Override
785784
public boolean removeLastOccurrence(Object o) {
@@ -825,7 +824,7 @@ public int size() {
825824
*
826825
* @implNote
827826
* The {@code Spliterator} additionally reports {@link Spliterator#SUBSIZED}
828-
* and implements {@code trySplit} to permit limited parallelism..
827+
* and implements {@code trySplit} to permit limited parallelism.
829828
*
830829
* @return a {@code Spliterator} over the elements in this list.
831830
*/
@@ -1358,7 +1357,6 @@ private boolean mustAddFinger() {
13581357

13591358
/***************************************************************************
13601359
Returns true only if this list requires less fingers.
1361-
/***************************************************************************
13621360
***************************************************************************/
13631361
private boolean mustRemoveFinger() {
13641362
// Here, fingerStack.size() == getRecommendedFingerCount(), or,
@@ -1574,8 +1572,8 @@ private void unlink(Node<E> x) {
15741572
}
15751573

15761574
/**
1577-
* Reconstitutes this {@code LinkedList} instance from a stream
1578-
* (that is, deserializes it).
1575+
* Reconstitutes this {@code LinkedList} instance from a stream (that is,
1576+
* deserializes it).
15791577
*/
15801578
@java.io.Serial
15811579
private void readObject(java.io.ObjectInputStream s)
@@ -1626,8 +1624,8 @@ private void readObject(java.io.ObjectInputStream s)
16261624
}
16271625

16281626
/**
1629-
* Saves the state of this {@code LinkedList} instance to a stream
1630-
* (that is, serializes it).
1627+
* Saves the state of this {@code LinkedList} instance to a stream (that is,
1628+
* serializes it).
16311629
*
16321630
* @serialData The size of the list (the number of elements it
16331631
* contains) is emitted (int), followed by all of its

0 commit comments

Comments
 (0)