Skip to content

Commit a303da3

Browse files
YKiselevenhorse
authored andcommitted
non-blocking ArrayList fix
1 parent 2a49782 commit a303da3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ class NonBlockingArrayList<T> {
908908
if (item == null) {
909909
needsModification = content[index] != null;
910910
} else {
911-
needsModification = item.equals(content[index]);
911+
needsModification = !item.equals(content[index]);
912912
}
913913
}
914914
if (needsModification) {

0 commit comments

Comments
 (0)