From b35ffd4162dc23cca1a791dc11740924df4c915d Mon Sep 17 00:00:00 2001 From: cgoldfeder Date: Wed, 1 Feb 2017 10:28:26 -0800 Subject: [PATCH] Remove an unused exception ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146259756 --- javatests/google/registry/testing/sftp/SftpServerRule.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javatests/google/registry/testing/sftp/SftpServerRule.java b/javatests/google/registry/testing/sftp/SftpServerRule.java index 2814173a6..cc42dd6c1 100644 --- a/javatests/google/registry/testing/sftp/SftpServerRule.java +++ b/javatests/google/registry/testing/sftp/SftpServerRule.java @@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkState; import google.registry.util.NetworkUtils; import java.io.File; -import java.io.IOException; import javax.annotation.Nullable; import org.apache.ftpserver.FtpServer; import org.apache.ftpserver.ftplet.FtpException; @@ -39,7 +38,7 @@ public final class SftpServerRule extends ExternalResource { * * @return the port on which the server is listening */ - public int serve(String user, String pass, File home) throws IOException, FtpException { + public int serve(String user, String pass, File home) throws FtpException { checkState(server == null, "You already have an SFTP server!"); int port = NetworkUtils.pickUnusedPort(); server = createSftpServer(user, pass, home, port);