Author: sebb
Date: Wed Mar 30 21:32:46 2011
New Revision: 1087086
URL: http://svn.apache.org/viewvc?rev=1087086&view=rev
Log:
Restore incorrectly named methods to maintain binary compatibility
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3.java
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTP.java
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3.java
URL:
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3.java?rev=1087086&r1=1087085&r2=1087086&view=diff
==============================================================================
---
commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3.java
(original)
+++
commons/proper/net/trunk/src/main/java/org/apache/commons/net/pop3/POP3.java
Wed Mar 30 21:32:46 2011
@@ -319,5 +319,15 @@ public class POP3 extends SocketClient
return buffer.toString();
}
+ /**
+ * Removes a ProtocolCommandListener.
+ *
+ * Delegates this incorrectly named method - removeProtocolCommandistener
(note the missing "L")- to
+ * the correct method {@link SocketClient#removeProtocolCommandListener}
+ * @param listener The ProtocolCommandListener to remove
+ */
+ public void
removeProtocolCommandistener(org.apache.commons.net.ProtocolCommandListener
listener){
+ removeProtocolCommandListener(listener);
+ }
}
Modified:
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTP.java
URL:
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTP.java?rev=1087086&r1=1087085&r2=1087086&view=diff
==============================================================================
---
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTP.java
(original)
+++
commons/proper/net/trunk/src/main/java/org/apache/commons/net/smtp/SMTP.java
Wed Mar 30 21:32:46 2011
@@ -741,6 +741,16 @@ public class SMTP extends SocketClient
return sendCommand(SMTPCommand.QUIT);
}
+ /**
+ * Removes a ProtocolCommandListener.
+ *
+ * Delegates this incorrectly named method - removeProtocolCommandistener
(note the missing "L")- to
+ * the correct method {@link SocketClient#removeProtocolCommandListener}
+ * @param listener The ProtocolCommandListener to remove
+ */
+ public void
removeProtocolCommandistener(org.apache.commons.net.ProtocolCommandListener
listener){
+ removeProtocolCommandListener(listener);
+ }
}
/* Emacs configuration