Update pp.A4-HandOverHandLocking/src/main/java/pp/ThreadsafeSimplifiedList.java

SL_U2_SJ
Shahnam Javidnia 2025-05-21 11:13:37 +02:00
parent d37c6d81e0
commit c9b1dfbe48
1 changed files with 0 additions and 1 deletions

View File

@ -37,7 +37,6 @@ public class ThreadsafeSimplifiedList<T> implements SimplifiedList<T> {
synchronized (curr.lock) {
next = curr.next;
if (next == null) {
// letztes Element erreicht → neues anhängen
curr.next = new Node<>(element, curr, null);
return true;
}