|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -16,6 +16,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.system;
|
|
|
|
package org.springframework.boot.system;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Console;
|
|
|
|
import java.lang.invoke.MethodHandles;
|
|
|
|
import java.lang.invoke.MethodHandles;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
@ -77,7 +78,12 @@ public enum JavaVersion {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Java 16.
|
|
|
|
* Java 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
SIXTEEN("16", Stream.class, "toList");
|
|
|
|
SIXTEEN("16", Stream.class, "toList"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Java 17.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
SEVENTEEN("17", Console.class, "charset");
|
|
|
|
|
|
|
|
|
|
|
|
private final String name;
|
|
|
|
private final String name;
|
|
|
|
|
|
|
|
|
|
|
|