From 48d8a04ceaa2dfefa72d1c4d9b3e2f8ee6af9a75 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Sun, 19 Jun 2016 11:00:55 -0700 Subject: [PATCH] Update to Apache Commons Net 3.5 The getReplyStrings() strings is now provided by the base class, so we do not need to implement it ourselves. Change-Id: I6a90c3dd11cbc5c7532c2c80f2c81046443b3030 --- .../java/org/apache/commons/net/smtp/AuthSMTPClient.java | 5 ----- lib/commons/BUCK | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gerrit-patch-commonsnet/src/main/java/org/apache/commons/net/smtp/AuthSMTPClient.java b/gerrit-patch-commonsnet/src/main/java/org/apache/commons/net/smtp/AuthSMTPClient.java index 94e738d558..5fd582b5e4 100644 --- a/gerrit-patch-commonsnet/src/main/java/org/apache/commons/net/smtp/AuthSMTPClient.java +++ b/gerrit-patch-commonsnet/src/main/java/org/apache/commons/net/smtp/AuthSMTPClient.java @@ -84,11 +84,6 @@ public class AuthSMTPClient extends SMTPClient { return (SSLSocketFactory) BlindSSLSocketFactory.getDefault(); } - @Override - public String[] getReplyStrings() { - return _replyLines.toArray(new String[_replyLines.size()]); - } - @Override public boolean login() throws IOException { final String name = getLocalAddress().getHostName(); diff --git a/lib/commons/BUCK b/lib/commons/BUCK index cc503a39f8..f9bf064cec 100644 --- a/lib/commons/BUCK +++ b/lib/commons/BUCK @@ -48,8 +48,8 @@ maven_jar( maven_jar( name = 'net', - id = 'commons-net:commons-net:2.2', - sha1 = '07993c12f63c78378f8c90de4bc2ee62daa7ca3a', + id = 'commons-net:commons-net:3.5', + sha1 = '342fc284019f590e1308056990fdb24a08f06318', license = 'Apache2.0', exclude = ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt'], )