(int capacity)
| 196 | } |
| 197 | |
| 198 | private void checkCapacity(int capacity) { |
| 199 | int l = buffer.length; |
| 200 | if (capacity > l) { |
| 201 | int newCap = Math.max(l << 1, capacity); |
| 202 | boolean[] buf = new boolean[newCap]; |
| 203 | System.arraycopy(buffer, 0, buf, 0, l); |
| 204 | this.buffer = buf; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | private boolean equals(BoolList that) { |
| 209 | if (this.pos != that.pos) { |
no outgoing calls
no test coverage detected