Skip to content

Commit b0ec219

Browse files
author
Luke Sikina
committed
2
1 parent 82c87c7 commit b0ec219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/edu/harvard/dbmi/avillach/dictionary/ConceptDecoratorService.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.springframework.stereotype.Service;
1111

1212
import java.util.List;
13+
import java.util.function.Predicate;
1314
import java.util.stream.Stream;
1415

1516
@Service
@@ -38,7 +39,7 @@ public Concept populateParentConcepts(Concept concept) {
3839

3940
// In some environments, certain parent concepts have critical details that we need to add to the detailed response
4041
List<String> conceptNodes = Stream.of(concept.conceptPath()
41-
.split("\\\\")).filter(String::isBlank).toList(); // you have to double escape the slash. Once for strings, and once for regex
42+
.split("\\\\")).filter(Predicate.not(String::isBlank)).toList(); // you have to double escape the slash. Once for strings, and once for regex
4243

4344
return switch (conceptNodes.size()) {
4445
case COMPLIANT, NON_COMPLIANT_TABLED -> populateTabledConcept(concept, conceptNodes);

0 commit comments

Comments
 (0)