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:
1 parent
ccf95d2af1
commit
31917d1556
1 file changed
+1
@@ -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