Skip to content

Commit 792a50f

Browse files
committed
use ordered set to remove flakiness
1 parent 32e8992 commit 792a50f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/symmetry/core/QuatSymmetryDetector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,11 @@ private static Stoichiometry trimSubunitClusters(Stoichiometry globalComposition
460460
List<SubunitCluster> globalClusters = globalComposition.getClusters();
461461
List<SubunitCluster> localClusters = new ArrayList<>();
462462

463-
Set<Integer> usedClusterIds =
463+
TreeSet<Integer> usedClusterIds =
464464
usedSubunitIds.stream().
465465
map(allSubunitClusterIds::get).
466466
distinct().
467-
collect(Collectors.toSet());
467+
collect(Collectors.toCollection(TreeSet::new));
468468

469469
// for each used cluster, remove unused subunits
470470
for(Integer usedClusterId:usedClusterIds) {

0 commit comments

Comments
 (0)