Skip to content

Commit

Permalink
Fix SetOfSuperFloatPropertyParameterTest for Super classes of Type Fl…
Browse files Browse the repository at this point in the history
…oat (#521)

Co-authored-by: sandhu5 <[email protected]>
  • Loading branch information
219sansim and sandhu5 authored Oct 28, 2023
1 parent bcec1ae commit 7242993
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ a copy of this software and associated documentation files (the
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -135,7 +135,7 @@ public static <T> T instantiate(Constructor<T> ctor, Object... args) {
}

public static Set<Type<?>> supertypes(Type<?> bottom) {
Set<Type<?>> supertypes = new HashSet<>();
Set<Type<?>> supertypes = new LinkedHashSet<>();
supertypes.add(bottom);
supertypes.addAll(bottom.getAllTypesAssignableFromThis());
return supertypes;
Expand Down

0 comments on commit 7242993

Please sign in to comment.