Suppress Eclipse warning about unclosed resource in SshSession
Change-Id: Ie3c1240ad8eda6c63042a0f111c27a40d7b411b2
This commit is contained in:
@@ -33,6 +33,7 @@ public class SshSession {
|
|||||||
this.account = account;
|
this.account = account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("resource")
|
||||||
public String exec(String command) throws JSchException, IOException {
|
public String exec(String command) throws JSchException, IOException {
|
||||||
ChannelExec channel = (ChannelExec) getSession().openChannel("exec");
|
ChannelExec channel = (ChannelExec) getSession().openChannel("exec");
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user