From edb18ddcde89bcd388d83b1c8bfe313fd982e644 Mon Sep 17 00:00:00 2001 From: Eugene Mamaev Date: Thu, 12 Aug 2021 10:24:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B8=D0=BF=20=D1=83=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BE=D0=B4=D0=B0=20push()=20=D0=B2=20=D0=BD=D0=B5=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D1=83=D1=8E=D1=89=D0=B5=D0=B9=20?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D1=80=D0=B5=D0=B4=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/enhorse/java-interview/issues/86 Убрал ошибку компиляции с возвращаемым типом. --- concurrency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;