Skip to content

Commit

Permalink
Update SimpleMutableSeqTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Jan 4, 2025
1 parent 2cd7e90 commit 77cd3ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class SimpleMutableSeqTest implements MutableSeqTestTemplate {
@SuppressWarnings("ClassEscapesDefinedScope")
@Override
public <E> CollectionFactory<E, ?, SimpleMutableSeq<E>> factory() {
return (SimpleListFactory<E>) SimpleListFactory.INSTANCE;
return (SimpleMutableSeqFactory<E>) SimpleMutableSeqFactory.INSTANCE;
}

@Override
Expand Down Expand Up @@ -59,8 +59,8 @@ public void set(@Index int index, E newValue) {
}
}

private static final class SimpleListFactory<E> implements CollectionFactory<E, ArrayList<E>, SimpleMutableSeq<E>> {
static final SimpleListFactory<?> INSTANCE = new SimpleListFactory<>();
private static final class SimpleMutableSeqFactory<E> implements CollectionFactory<E, ArrayList<E>, SimpleMutableSeq<E>> {
static final SimpleMutableSeqFactory<?> INSTANCE = new SimpleMutableSeqFactory<>();

@Override
public ArrayList<E> newBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ default void shuffleTest() {
Assertions.assertEquals(data.length, seq.size());
Assertions.assertTrue(seq.containsAll(data));
}

}

@Test
Expand Down

0 comments on commit 77cd3ad

Please sign in to comment.