"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/JavaVersion.java" between
spring-boot-2.7.3.tar.gz and spring-boot-2.7.4.tar.gz

About: Spring Boot helps to create Spring-powered, production-grade applications and services.

JavaVersion.java  (spring-boot-2.7.3):JavaVersion.java  (spring-boot-2.7.4)
skipping to change at line 26 skipping to change at line 26
package org.springframework.boot.system; package org.springframework.boot.system;
import java.io.Console; import java.io.Console;
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodHandles;
import java.time.Duration; import java.time.Duration;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.concurrent.Future;
import java.util.stream.Stream; import java.util.stream.Stream;
import org.springframework.util.ClassUtils; import org.springframework.util.ClassUtils;
/** /**
* Known Java versions. * Known Java versions.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Phillip Webb * @author Phillip Webb
* @since 2.0.0 * @since 2.0.0
skipping to change at line 92 skipping to change at line 93
SIXTEEN("16", Stream.class, "toList"), SIXTEEN("16", Stream.class, "toList"),
/** /**
* Java 17. * Java 17.
*/ */
SEVENTEEN("17", Console.class, "charset"), SEVENTEEN("17", Console.class, "charset"),
/** /**
* Java 18. * Java 18.
*/ */
EIGHTEEN("18", Duration.class, "isPositive"); EIGHTEEN("18", Duration.class, "isPositive"),
/**
* Java 19.
*/
NINETEEN("19", Future.class, "state");
private final String name; private final String name;
private final boolean available; private final boolean available;
JavaVersion(String name, Class<?> clazz, String methodName) { JavaVersion(String name, Class<?> clazz, String methodName) {
this.name = name; this.name = name;
this.available = ClassUtils.hasMethod(clazz, methodName); this.available = ClassUtils.hasMethod(clazz, methodName);
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)