From e0c54a2800be16b586b597dd972507eabe3be099 Mon Sep 17 00:00:00 2001 From: Vojin Jovanovic Date: Wed, 23 Jul 2025 14:57:26 +0200 Subject: [PATCH] Match json file indentation in dynamic-access errors --- .../src/com/oracle/svm/core/MissingRegistrationUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/MissingRegistrationUtils.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/MissingRegistrationUtils.java index ecf76031f9bb..6e8b74aedabf 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/MissingRegistrationUtils.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/MissingRegistrationUtils.java @@ -150,7 +150,9 @@ private static void printLine(StringBuilder sb, Object object) { } protected static JsonWriter getJSONWriter(StringWriter json) throws IOException { - return new JsonPrettyWriter(json).indent().appendIndentation(); + return new JsonPrettyWriter(json) + .indent().indent() // match indentation of reachability-metadata.json + .appendIndentation(); } protected static String elementToJSON(JsonPrintable element) {