Skip to content

Commit 7d4befb

Browse files
committed
Fix method name
1 parent 6ab540d commit 7d4befb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

whelk-core/src/main/groovy/whelk/search2/FacetTree.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ public List<Map<String, Object>> sortObservationsAsTree(List<Map<String, Object>
4545

4646
private Map<String, Object> findParent(Map<String, Object> observation, List<Map<String, Object>> observations) {
4747
return observations.stream()
48-
.filter(o -> isSubCLass(observation, o))
48+
.filter(o -> isSubClass(observation, o))
4949
.findFirst().orElse(null);
5050
}
5151

5252
private List<Map<String, Object>> findChildren(Map<String, Object> observation, List<Map<String, Object>> observations) {
5353
return observations.stream()
54-
.filter(o -> isSubCLass(o, observation))
54+
.filter(o -> isSubClass(o, observation))
5555
.collect(Collectors.toList());
5656
}
5757

58-
private boolean isSubCLass(Map<String, Object> obsA, Map<String, Object> obsB) {
58+
private boolean isSubClass(Map<String, Object> obsA, Map<String, Object> obsB) {
5959
String idA = get(obsA, List.of("object", "@id"), "");
6060
String idB = get(obsB, List.of("object", "@id"), "");
6161
return !idA.equals(idB) && jsonLd.isSubClassOf(idA, idB);

0 commit comments

Comments
 (0)