diff --git a/src/main/java9/com/jcraft/jsch/JavaVersion.java b/src/main/java9/com/jcraft/jsch/JavaVersion.java index c3f8afb3..6d9fd0d9 100644 --- a/src/main/java9/com/jcraft/jsch/JavaVersion.java +++ b/src/main/java9/com/jcraft/jsch/JavaVersion.java @@ -1,7 +1,10 @@ package com.jcraft.jsch; +import com.jcraft.jsch.annotations.SuppressForbiddenApi; + final class JavaVersion { + @SuppressForbiddenApi("jdk-deprecated") static int getVersion() { return Runtime.version().major(); }