Author: rdonkin
Date: Mon Sep 7 07:21:38 2009
New Revision: 812019
URL: http://svn.apache.org/viewvc?rev=812019&view=rev
Log:
Tidy up javadocs, suppress warnings and switch to java 1.5 methods
Modified:
james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
Modified:
james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java?rev=812019&r1=812018&r2=812019&view=diff
==============================================================================
---
james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
(original)
+++
james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
Mon Sep 7 07:21:38 2009
@@ -35,8 +35,6 @@
/**
* Provides SMTP functionality by carrying out the server side of the SMTP
* interaction.
- *
- * @version CVS $Revision$ $Date$
*/
public class SMTPHandler implements ProtocolHandler, SMTPSession {
@@ -106,12 +104,11 @@
}
}
- /*
- * (non-Javadoc)
+ /**
* @see org.apache.james.socket.ProtocolHandler#handleProtocol()
*/
public void handleProtocol() throws IOException {
- smtpID = random.nextInt(1024) + "";
+ smtpID = Integer.toString(random.nextInt(1024));
relayingAllowed =
theConfigData.isRelayingAllowed(helper.getRemoteIP());
authSupported = theConfigData.isAuthRequired(helper.getRemoteIP());
@@ -270,6 +267,7 @@
*
* @see org.apache.james.smtpserver.SMTPSession#getState()
*/
+ @SuppressWarnings("unchecked")
public Map<String,Object> getState() {
Object res = getConnectionState().get(SMTPSession.SESSION_STATE_MAP);
if (res == null || !(res instanceof Map)) {
@@ -330,6 +328,7 @@
/**
* @see org.apache.james.smtpserver.SMTPSession#getRcptCount()
*/
+ @SuppressWarnings("unchecked")
public int getRcptCount() {
int count = 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]