From 180f0a34a9146ffb885211799c1d2d455a90c612 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sun, 29 Jun 2025 13:06:42 +0200 Subject: [PATCH] replace deprecated `fields()` with `propertyStream()` --- .../java/stirling/software/SPDF/service/ApiDocService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stirling-pdf/src/main/java/stirling/software/SPDF/service/ApiDocService.java b/stirling-pdf/src/main/java/stirling/software/SPDF/service/ApiDocService.java index d5cc76af8..0e46af08d 100644 --- a/stirling-pdf/src/main/java/stirling/software/SPDF/service/ApiDocService.java +++ b/stirling-pdf/src/main/java/stirling/software/SPDF/service/ApiDocService.java @@ -120,8 +120,8 @@ public class ApiDocService { ObjectMapper mapper = new ObjectMapper(); apiDocsJsonRootNode = mapper.readTree(apiDocsJson); JsonNode paths = apiDocsJsonRootNode.path("paths"); - paths.fields() - .forEachRemaining( + paths.propertyStream() + .forEach( entry -> { String path = entry.getKey(); JsonNode pathNode = entry.getValue();