Skip to content

Commit

Permalink
Suppress warnings for System.getProperty("line.separator") (apple#432)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
KushalP authored Apr 18, 2024
1 parent ccf95d2 commit 31917d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkl-core/src/main/java/org/pkl/core/util/IoUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public static Path getDefaultModuleCacheDir() {
}

// not stored to avoid build-time initialization by native-image
@SuppressWarnings("SystemGetProperty")
public static String getLineSeparator() {
return System.getProperty("line.separator");
}
Expand Down

0 comments on commit 31917d1

Please sign in to comment.