Skip to content

Commit

Permalink
Polish "Remove "java.home" system property when running in a native i…
Browse files Browse the repository at this point in the history
…mage"

See gh-43517
  • Loading branch information
mhalbritter committed Jan 24, 2025
1 parent 017a71d commit 7c6dbbf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ private byte[] generateHash(Class<?> sourceClass) {
update(digest, home.getDir());
update(digest, System.getProperty("user.dir"));
if (!NativeDetector.inNativeImage()) {
String javaHome = System.getProperty("java.home");
update(digest, javaHome);
update(digest, System.getProperty("java.home"));
}
update(digest, System.getProperty("java.class.path"));
update(digest, System.getProperty("sun.java.command"));
Expand Down

0 comments on commit 7c6dbbf

Please sign in to comment.