Skip to content

Commit

Permalink
remove unneeded imports and additional clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Sep 25, 2024
1 parent 56f7ac7 commit 032d6e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public List<CustomSampleIdentifier> extractCustomDataSamples(final StudyViewFilt
List<CustomSampleIdentifier> samples = filter.getSamples();
return (samples != null) ? samples.stream() : Stream.empty();
})
.collect(Collectors.toList());
.toList();

if (!customSamplesFromProperty.isEmpty()) {
return extractCustomDataSamplesWithoutSession(studyViewFilter, customSamplesFromProperty);
Expand Down Expand Up @@ -132,9 +132,7 @@ private List<CustomSampleIdentifier> extractCustomDataSamplesWithSession(final S
}

private List<CustomSampleIdentifier> extractCustomDataSamplesWithoutSession(final StudyViewFilter studyViewFilter, List<CustomSampleIdentifier> customSamplesFromProperty) {
List<CustomSampleIdentifier> customSampleIdentifiers = new ArrayList<>();

customSampleIdentifiers.addAll(customSamplesFromProperty);
List<CustomSampleIdentifier> customSampleIdentifiers = new ArrayList<>(customSamplesFromProperty);

List<ClinicalDataFilter> equalityFilters = new ArrayList<>();
List<ClinicalDataFilter> intervalFilters = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package org.cbioportal.web.parameter;

import org.cbioportal.service.util.CustomAttributeWithData;
import org.cbioportal.service.util.CustomDataValue;

import java.io.Serializable;
import java.util.List;

Expand Down

0 comments on commit 032d6e3

Please sign in to comment.