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.
This commit is contained in:
Kushal Pisavadia
2024-04-18 05:23:24 +01:00
committed by GitHub
parent ccf95d2af1
commit 31917d1556

View File

@@ -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");
}