mirror of
https://github.com/apple/pkl.git
synced 2026-03-25 02:21:11 +01:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user