Cleaned contentType

This commit is contained in:
Tim
2020-09-10 11:05:59 +02:00
parent 66b0010484
commit 72de362126
2 changed files with 4 additions and 4 deletions

View File

@@ -10,10 +10,10 @@ public class Queue<ContentType> {
public void enqueue( ContentType pContentObject ) {
if (head == null) {
head = new QueueNode<ContentType>(pContentObject);
head = new QueueNode<>(pContentObject);
tail = head;
} else {
QueueNode<ContentType> node = new QueueNode<ContentType>(pContentObject);
QueueNode<ContentType> node = new QueueNode<>(pContentObject);
tail.setNext(node);
tail = node;
}