Skip to content

Commit a4f49bb

Browse files
committed
Use methods on Reader to detect Java 25
This class resides in java.base, which is very unlikely to be not in a custom built JDK. See gh-47609
1 parent 2b99049 commit a4f49bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/JavaVersion.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.io.Console;
2020
import java.io.Reader;
21-
import java.net.http.HttpResponse;
2221
import java.text.NumberFormat;
2322
import java.time.Duration;
2423
import java.util.Arrays;
@@ -91,7 +90,7 @@ public enum JavaVersion {
9190
* Java 25.
9291
* @since 3.5.7
9392
*/
94-
TWENTY_FIVE("25", HttpResponse.class, "connectionLabel");
93+
TWENTY_FIVE("25", Reader.class, "readAllLines");
9594

9695
private final String name;
9796

0 commit comments

Comments
 (0)