From 31917d15564815309228f4dd9e51b0a6a2e198f6 Mon Sep 17 00:00:00 2001 From: Kushal Pisavadia Date: Thu, 18 Apr 2024 05:23:24 +0100 Subject: [PATCH] Suppress warnings for `System.getProperty("line.separator")` (#432) `class System` gets initialized at build time through `native-image` and added to the heap. We initialize everything at build time via the `--initialize-at-build-time=` flag. --- pkl-core/src/main/java/org/pkl/core/util/IoUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pkl-core/src/main/java/org/pkl/core/util/IoUtils.java b/pkl-core/src/main/java/org/pkl/core/util/IoUtils.java index 44f3fafa..df10423e 100644 --- a/pkl-core/src/main/java/org/pkl/core/util/IoUtils.java +++ b/pkl-core/src/main/java/org/pkl/core/util/IoUtils.java @@ -175,6 +175,7 @@ public final class IoUtils { } // not stored to avoid build-time initialization by native-image + @SuppressWarnings("SystemGetProperty") public static String getLineSeparator() { return System.getProperty("line.separator"); }