Skip to content

Commit

Permalink
suppress deprecation error from forbiddenapis check
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiede committed Feb 2, 2024
1 parent 723f954 commit b352009
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java9/com/jcraft/jsch/JavaVersion.java
Original file line number Diff line number Diff line change
@@ -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();
}
Expand Down

0 comments on commit b352009

Please sign in to comment.