mirror of
https://github.com/apple/pkl.git
synced 2026-07-12 16:12:42 +02: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
|
// not stored to avoid build-time initialization by native-image
|
||||||
|
@SuppressWarnings("SystemGetProperty")
|
||||||
public static String getLineSeparator() {
|
public static String getLineSeparator() {
|
||||||
return System.getProperty("line.separator");
|
return System.getProperty("line.separator");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user