File tree 1 file changed +2
-1
lines changed
src/main/java/edu/harvard/dbmi/avillach/dictionary
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
import org .springframework .stereotype .Service ;
11
11
12
12
import java .util .List ;
13
+ import java .util .function .Predicate ;
13
14
import java .util .stream .Stream ;
14
15
15
16
@ Service
@@ -38,7 +39,7 @@ public Concept populateParentConcepts(Concept concept) {
38
39
39
40
// In some environments, certain parent concepts have critical details that we need to add to the detailed response
40
41
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
42
43
43
44
return switch (conceptNodes .size ()) {
44
45
case COMPLIANT , NON_COMPLIANT_TABLED -> populateTabledConcept (concept , conceptNodes );
You can’t perform that action at this time.
0 commit comments