We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bdb2a commit e3d2328Copy full SHA for e3d2328
src/main/java/gr/geompokon/bitarray/BitArray.java
@@ -198,7 +198,7 @@ public Boolean get(int index) {
198
*/
199
public Boolean set(int index, Boolean bit) {
200
Objects.requireNonNull(bit);
201
- ensureIndexInRange(0, elements - 1);
+ ensureIndexInRange(index, elements - 1);
202
modCount++;
203
// get bit indices
204
int longIndex = getLongIndex(index);
0 commit comments