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