Skip to content

Commit 496ea59

Browse files
committed
GP-26 fix discrepancies
1 parent 19e6a0d commit 496ea59

File tree

1 file changed

+3
-6
lines changed
  • 2-0-data-structures-and-algorithms/src/main/java/com/bobocode/linked_list

1 file changed

+3
-6
lines changed

2-0-data-structures-and-algorithms/src/main/java/com/bobocode/linked_list/LinkedList.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
package com.bobocode.linked_list;
22

33

4-
54
import com.bobocode.util.ExerciseNotCompletedException;
65

7-
import java.util.NoSuchElementException;
8-
96
/**
107
* {@link LinkedList} is a list implementation that is based on singly linked generic nodes. A node is implemented as
11-
* inner static class {@link Node<T>}. In order to keep track on nodes, {@link LinkedList} keeps a reference to a head node.
8+
* inner static class {@link Node<T>}.
129
*
1310
* @param <T> generic type parameter
1411
*/
@@ -26,7 +23,7 @@ public static <T> List<T> of(T... elements) {
2623
}
2724

2825
/**
29-
* Adds an element to the end of the list
26+
* Adds an element to the end of the list.
3027
*
3128
* @param element element to add
3229
*/
@@ -75,7 +72,7 @@ public T get(int index) {
7572
* Returns the first element of the list. Operation is performed in constant time O(1)
7673
*
7774
* @return the first element of the list
78-
* @throws NoSuchElementException if list is empty
75+
* @throws java.util.NoSuchElementException if list is empty
7976
*/
8077
@Override
8178
public T getFirst() {

0 commit comments

Comments
 (0)