Skip to content

Commit 8b324a3

Browse files
shreyashtpivovarit
authored andcommitted
Changes for suggestions on BAEL-998 (eugenp#4250)
1 parent 3c9a2f3 commit 8b324a3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎vavr/src/test/java/com/baeldung/vavr/interoperability/CollectionsInteroperabilityUnitTest.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import io.vavr.collection.LinkedHashSet;
1313
import io.vavr.collection.List;
1414
import io.vavr.collection.Map;
15+
import io.vavr.collection.Set;
1516
import io.vavr.collection.Stream;
1617

1718
public class CollectionsInteroperabilityUnitTest {
@@ -77,8 +78,9 @@ public void givenParams_whenVavrListConvertedToMutable_thenRetunMutableList() {
7778
@Test
7879
public void givenParams_WhenVavarListConvertedToLinkedSet_thenReturnLinkedSet() {
7980
List<String> vavrList = List.of("Java", "Haskell", "Scala", "Java");
80-
LinkedHashSet<String> linkedSet = (LinkedHashSet<String>) vavrList.toLinkedSet();
81+
Set<String> linkedSet = vavrList.toLinkedSet();
8182
assertEquals(3, linkedSet.size());
83+
assertTrue(linkedSet instanceof LinkedHashSet);
8284
}
8385

8486
@Test

0 commit comments

Comments
 (0)