diff --git a/concurrency.md b/concurrency.md index 0f4042f..f0cb7e8 100644 --- a/concurrency.md +++ b/concurrency.md @@ -812,7 +812,7 @@ __busy spin__ – это техника, которую программисты class NonBlockingStack { private final AtomicReference head = new AtomicReference<>(null); - Stack push(final T value) { + NonBlockingStack push(final T value) { final Element current = new Element(); current.value = value; Element recent;