Fix unclosed resource warnings

Eclipse Kepler thinks these resources are unclosed.

The refactoring in JettyDaemon combines three duplicate invocations
and confuses Kepler's JDT enough that the unclosed resource warning
goes away.

Change-Id: I0f376ac6116082ed645d6712fe5d98add66f493e
This commit is contained in:
Shawn Pearce
2013-11-28 22:34:32 -08:00
parent 42e2944d3a
commit 0b17d5f178
9 changed files with 21 additions and 13 deletions

View File

@@ -36,6 +36,7 @@ public class SshSession {
this.account = account;
}
@SuppressWarnings("resource")
public String exec(String command) throws JSchException, IOException {
ChannelExec channel = (ChannelExec) getSession().openChannel("exec");
try {