1
1
Fork 0

Тип у метода push() в неблокирующей очереди

https://github.com/enhorse/java-interview/issues/86
Убрал ошибку компиляции с возвращаемым типом.
This commit is contained in:
Eugene Mamaev 2021-08-12 10:24:13 +03:00 committed by Enchased Horse
parent d8613d6ca8
commit edb18ddcde
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ __busy spin__ это техника, которую программисты
class NonBlockingStack<T> { class NonBlockingStack<T> {
private final AtomicReference<Element> head = new AtomicReference<>(null); private final AtomicReference<Element> head = new AtomicReference<>(null);
Stack<T> push(final T value) { NonBlockingStack<T> push(final T value) {
final Element current = new Element(); final Element current = new Element();
current.value = value; current.value = value;
Element recent; Element recent;