Skip to content

Commit 9d7a77c

Browse files
author
George Bouroutzoglou
committed
Remove modcount increment in set method
1 parent 775063a commit 9d7a77c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/gr/geompokon/bitarray/BitArray.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ public Boolean get(int index) {
198198
public Boolean set(int index, Boolean bit) {
199199
Objects.requireNonNull(bit);
200200
ensureIndexInRange(index, elements - 1);
201-
modCount++;
202201
// get bit indices
203202
int longIndex = getLongIndex(index);
204203
int indexInLong = getIndexInLong(index);

0 commit comments

Comments
 (0)