In http://docs.oracle.com/javase/tutorial/java/generics/genTypes.html
public class Node<T> {
private T data;
private Node<T> next;
public Node(T data, Node<T> next) }
this.data = data;
this.next = next;
}
public T getData() { return data; }
// ...
}
In the definition of the Node constructor, the opening brace is reversed.
public class Node<T> {
private T data;
private Node<T> next;
public Node(T data, Node<T> next) }
this.data = data;
this.next = next;
}
public T getData() { return data; }
// ...
}
In the definition of the Node constructor, the opening brace is reversed.
- duplicates
-
JDK-8132923 Typo in Erasure of Generic Types
- Resolved