Skip to content

Commit 2fd4fd0

Browse files
committed
Replace deprecated class
1 parent 51030c5 commit 2fd4fd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gdsc-core/src/main/java/uk/ac/sussex/gdsc/core/match/Resequencer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828

2929
package uk.ac.sussex.gdsc.core.match;
3030

31+
import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap;
3132
import java.util.Arrays;
3233
import java.util.function.IntUnaryOperator;
3334
import uk.ac.sussex.gdsc.core.utils.MathUtils;
34-
import uk.ac.sussex.gdsc.core.utils.OpenHashMaps.CustomInt2IntOpenHashMap;
3535
import uk.ac.sussex.gdsc.core.utils.ValidationUtils;
3636
import uk.ac.sussex.gdsc.core.utils.function.IntIntConsumer;
3737

@@ -215,15 +215,15 @@ protected int getOffset() {
215215
*/
216216
private static class DynamicIntMap implements IntMap {
217217
/** The set of observed values. */
218-
final CustomInt2IntOpenHashMap observed;
218+
final Int2IntOpenHashMap observed;
219219

220220
/**
221221
* Instantiates a new dynamic int set.
222222
*
223223
* @param size the size
224224
*/
225225
DynamicIntMap(int size) {
226-
observed = new CustomInt2IntOpenHashMap(size);
226+
observed = new Int2IntOpenHashMap(size);
227227
observed.defaultReturnValue(NO_ENTRY);
228228
}
229229

@@ -245,7 +245,7 @@ public boolean resetForRange(int min, long range) {
245245

246246
@Override
247247
public void forEach(IntIntConsumer action) {
248-
observed.forEach(action);
248+
observed.forEach(action::accept);
249249
}
250250
}
251251

0 commit comments

Comments
 (0)