remove java 21 warnings in jsch
This commit is contained in:
parent
b8c0048cd4
commit
9b509c2776
7 changed files with 17 additions and 8 deletions
|
@ -34,6 +34,9 @@ public class ChannelExec extends ChannelSession {
|
|||
|
||||
byte[] command = new byte[0];
|
||||
|
||||
public ChannelExec() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start() throws JSchException {
|
||||
Session _session = getSession();
|
||||
|
|
|
@ -34,6 +34,9 @@ public class ChannelSubsystem extends ChannelSession {
|
|||
boolean want_reply = true;
|
||||
String subsystem = "";
|
||||
|
||||
public ChannelSubsystem() {
|
||||
}
|
||||
|
||||
public void setWantReply(boolean foo) {
|
||||
want_reply = foo;
|
||||
}
|
||||
|
|
|
@ -69,6 +69,9 @@ public abstract class KeyExchange {
|
|||
protected byte[] H = null;
|
||||
protected byte[] K_S = null;
|
||||
|
||||
public KeyExchange() {
|
||||
}
|
||||
|
||||
public abstract void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C)
|
||||
throws Exception;
|
||||
|
||||
|
|
|
@ -1238,12 +1238,6 @@ public abstract class KeyPair {
|
|||
Util.bzero(passphrase);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void finalize() {
|
||||
dispose();
|
||||
}
|
||||
|
||||
static KeyPair loadPPK(JSch.InstanceLogger instLogger, byte[] buf) throws JSchException {
|
||||
byte[] pubkey = null;
|
||||
byte[] prvkey = null;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
package com.jcraft.jsch;
|
||||
|
||||
class Packet {
|
||||
public class Packet {
|
||||
|
||||
private static Random random = null;
|
||||
|
||||
|
@ -37,7 +37,7 @@ class Packet {
|
|||
Buffer buffer;
|
||||
byte[] ba4 = new byte[4];
|
||||
|
||||
Packet(Buffer buffer) {
|
||||
public Packet(Buffer buffer) {
|
||||
this.buffer = buffer;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,9 @@ public abstract class UserAuth {
|
|||
protected Buffer buf;
|
||||
protected String username;
|
||||
|
||||
public UserAuth() {
|
||||
}
|
||||
|
||||
public boolean start(Session session) throws Exception {
|
||||
this.userinfo = session.getUserInfo();
|
||||
this.packet = session.packet;
|
||||
|
|
|
@ -32,6 +32,9 @@ public class UserAuthNone extends UserAuth {
|
|||
|
||||
private String methods;
|
||||
|
||||
public UserAuthNone() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean start(Session session) throws Exception {
|
||||
super.start(session);
|
||||
|
|
Loading…
Reference in a new issue