minimal version is 8

This commit is contained in:
Ceki Gulcu 2021-06-17 23:09:44 +02:00
parent 494bd9aee9
commit 153a6cabda
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ import java.lang.reflect.Method;
import org.slf4j.helpers.Util;
public class VersionUtil {
static final int MINIMAL_VERSION = 5;
// code was compiled under Java 8 or later
static final int MINIMAL_VERSION = 8;
static public int getJavaMajorVersion() {
String javaVersionString = Util.safeGetSystemProperty("java.version");