Example usage for com.google.common.base StandardSystemProperty JAVA_CLASS_VERSION

List of usage examples for com.google.common.base StandardSystemProperty JAVA_CLASS_VERSION

Introduction

In this page you can find the example usage for com.google.common.base StandardSystemProperty JAVA_CLASS_VERSION.

Prototype

StandardSystemProperty JAVA_CLASS_VERSION

To view the source code for com.google.common.base StandardSystemProperty JAVA_CLASS_VERSION.

Click Source Link

Document

Java class format version number.

Usage

From source file:org.killbill.billing.server.updatechecker.ClientInfo.java

public String getJavaClassVersion() {
    return getProperty(StandardSystemProperty.JAVA_CLASS_VERSION);
}

From source file:net.caseif.ttt.TTTCore.java

private void checkJavaVersion() {
    try {// ww w . j ava2 s  .c om
        if (Float.parseFloat(StandardSystemProperty.JAVA_CLASS_VERSION.value()) < 52.0) {
            logWarning("error.plugin.old-java");
        }
    } catch (NumberFormatException ignored) {
        logWarning("error.plugin.unknown-java");
    }
}