From a303da3a7090479a1046f1f2f768ef2d75481ffe Mon Sep 17 00:00:00 2001 From: Yuriy Kiselev Date: Tue, 11 Apr 2023 23:50:03 +0300 Subject: [PATCH] non-blocking ArrayList fix --- concurrency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concurrency.md b/concurrency.md index a853abd..78d3db7 100644 --- a/concurrency.md +++ b/concurrency.md @@ -908,7 +908,7 @@ class NonBlockingArrayList { if (item == null) { needsModification = content[index] != null; } else { - needsModification = item.equals(content[index]); + needsModification = !item.equals(content[index]); } } if (needsModification) {