Skip to content

Commit 53a298f

Browse files
fix: use Collectors.toList() for Java 11 compatibility (#6)
Stream.toList() was introduced in Java 16, but the SDK targets Java 11. This was causing compilation failures on Java 11: cannot find symbol symbol: method toList() location: interface java.util.stream.Stream<PlanStep>
1 parent 43716e0 commit 53a298f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/getaxonflow/sdk/AxonFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ private PlanResponse parsePlanResponse(Response response, String requestDomain)
438438
if (rawSteps != null) {
439439
steps = rawSteps.stream()
440440
.map(stepMap -> objectMapper.convertValue(stepMap, PlanStep.class))
441-
.toList();
441+
.collect(java.util.stream.Collectors.toList());
442442
}
443443
domain = data.get("domain") != null ? (String) data.get("domain") : domain;
444444
complexity = data.get("complexity") != null ? ((Number) data.get("complexity")).intValue() : null;

0 commit comments

Comments
 (0)