From c525d62a0f16af5b5d674d516276864413fa248e Mon Sep 17 00:00:00 2001 From: HaneenT Date: Thu, 1 Aug 2024 11:23:21 -0400 Subject: [PATCH] KPMP-5460: Replace HashSet with TreeSet so contents get sorted --- .../org/kpmp/repositoryDataset/RepositoryDatasetDisplay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetDisplay.java b/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetDisplay.java index cc647ec..56c310e 100644 --- a/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetDisplay.java +++ b/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetDisplay.java @@ -1,6 +1,7 @@ package org.kpmp.repositoryDataset; import java.util.HashSet; +import java.util.TreeSet; import java.util.Set; import com.fasterxml.jackson.annotation.JsonProperty; @@ -38,7 +39,7 @@ public RepositoryDatasetDisplay(RepositoryFileDataset repositoryFile) { doi = new HashSet(); protocol = new HashSet(); tissueSource = new HashSet(); - experimentalStrategy = new HashSet(); + experimentalStrategy = new TreeSet(); workflowType = new HashSet(); redcapId.add(repositoryFile.getId().getRedcapId()); if (shouldAdd(repositoryFile.getSampleType())) {