You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2016/01/26 11:24:56 UTC
svn commit: r1726760 [3/3] - in /james/project/trunk:
mailbox/api/src/main/java/org/apache/james/mailbox/
mailbox/api/src/main/java/org/apache/james/mailbox/acl/
mailbox/api/src/main/java/org/apache/james/mailbox/model/
mailbox/caching/src/main/java/or...
Modified: james/project/trunk/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/api/LdapConstants.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/api/LdapConstants.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/api/LdapConstants.java (original)
+++ james/project/trunk/server/data/data-ldap/src/main/java/org/apache/james/user/ldap/api/LdapConstants.java Tue Jan 26 10:24:54 2016
@@ -26,7 +26,7 @@ package org.apache.james.user.ldap.api;
public interface LdapConstants {
// The authentication mechanisms for the provider to use
- public static final String SECURITY_AUTHENTICATION_NONE = "none";
- public static final String SECURITY_AUTHENTICATION_SIMPLE = "simple";
+ String SECURITY_AUTHENTICATION_NONE = "none";
+ String SECURITY_AUTHENTICATION_SIMPLE = "simple";
}
Modified: james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/api/ContinuationTokenManager.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/api/ContinuationTokenManager.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/api/ContinuationTokenManager.java (original)
+++ james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/api/ContinuationTokenManager.java Tue Jan 26 10:24:54 2016
@@ -22,7 +22,7 @@ package org.apache.james.jmap.api;
import org.apache.james.jmap.model.ContinuationToken;
public interface ContinuationTokenManager {
- public static enum ContinuationTokenStatus {
+ enum ContinuationTokenStatus {
OK,
INVALID,
EXPIRED
Modified: james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/Method.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/Method.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/Method.java (original)
+++ james/project/trunk/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/Method.java Tue Jan 26 10:24:54 2016
@@ -34,11 +34,11 @@ public interface Method {
interface Request {
- public static Name name(String name) {
+ static Name name(String name) {
return new Name(name);
}
- public class Name {
+ class Name {
private final String name;
@@ -77,11 +77,11 @@ public interface Method {
interface Response {
- public static Name name(String name) {
+ static Name name(String name) {
return new Name(name);
}
- public class Name {
+ class Name {
private final String name;
Modified: james/project/trunk/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyConstants.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyConstants.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyConstants.java (original)
+++ james/project/trunk/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyConstants.java Tue Jan 26 10:24:54 2016
@@ -24,20 +24,20 @@ import org.jboss.netty.channel.ChannelLo
* Just some constants which are used with the Netty implementation
*/
public interface NettyConstants {
- final static String ZLIB_DECODER = "zlibDecoder";
- final static String ZLIB_ENCODER = "zlibEncoder";
- final static String SSL_HANDLER = "sslHandler";
- final static String REQUEST_DECODER = "requestDecoder";
- final static String FRAMER = "framer";
- final static String TIMEOUT_HANDLER = "timeoutHandler";
- final static String CORE_HANDLER = "coreHandler";
- final static String GROUP_HANDLER = "groupHandler";
- final static String CONNECTION_LIMIT_HANDLER = "connectionLimitHandler";
- final static String CONNECTION_LIMIT_PER_IP_HANDLER = "connectionPerIpLimitHandler";
- final static String CONNECTION_COUNT_HANDLER = "connectionCountHandler";
- final static String CHUNK_WRITE_HANDLER = "chunkWriteHandler";
- final static String EXECUTION_HANDLER = "executionHandler";
- final static String HEARTBEAT_HANDLER = "heartbeatHandler";
+ String ZLIB_DECODER = "zlibDecoder";
+ String ZLIB_ENCODER = "zlibEncoder";
+ String SSL_HANDLER = "sslHandler";
+ String REQUEST_DECODER = "requestDecoder";
+ String FRAMER = "framer";
+ String TIMEOUT_HANDLER = "timeoutHandler";
+ String CORE_HANDLER = "coreHandler";
+ String GROUP_HANDLER = "groupHandler";
+ String CONNECTION_LIMIT_HANDLER = "connectionLimitHandler";
+ String CONNECTION_LIMIT_PER_IP_HANDLER = "connectionPerIpLimitHandler";
+ String CONNECTION_COUNT_HANDLER = "connectionCountHandler";
+ String CHUNK_WRITE_HANDLER = "chunkWriteHandler";
+ String EXECUTION_HANDLER = "executionHandler";
+ String HEARTBEAT_HANDLER = "heartbeatHandler";
- final static ChannelLocal<Object> attributes = new ChannelLocal<Object>();
+ ChannelLocal<Object> attributes = new ChannelLocal<Object>();
}
Modified: james/project/trunk/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/handler/ProtocolHandlerLoader.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/handler/ProtocolHandlerLoader.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/handler/ProtocolHandlerLoader.java (original)
+++ james/project/trunk/server/protocols/protocols-library/src/main/java/org/apache/james/protocols/lib/handler/ProtocolHandlerLoader.java Tue Jan 26 10:24:54 2016
@@ -37,14 +37,14 @@ public interface ProtocolHandlerLoader {
* @return handler
* @throws LoadingException
*/
- public ProtocolHandler load(String name, Configuration config) throws LoadingException;
+ ProtocolHandler load(String name, Configuration config) throws LoadingException;
/**
* Exception which will get thrown if the loading of a {@link ProtocolHandler} failed
*
*
*/
- public class LoadingException extends Exception {
+ class LoadingException extends Exception {
/**
*
*/
Modified: james/project/trunk/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SMTPConstants.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SMTPConstants.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SMTPConstants.java (original)
+++ james/project/trunk/server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/SMTPConstants.java Tue Jan 26 10:24:54 2016
@@ -24,7 +24,7 @@ package org.apache.james.smtpserver;
*/
public interface SMTPConstants {
- static final String DATA_MIMEMESSAGE_STREAMSOURCE = "org.apache.james.core.DataCmdHandler.DATA_MIMEMESSAGE_STREAMSOURCE";
- static final String MAIL = "MAIL";
+ String DATA_MIMEMESSAGE_STREAMSOURCE = "org.apache.james.core.DataCmdHandler.DATA_MIMEMESSAGE_STREAMSOURCE";
+ String MAIL = "MAIL";
}
Modified: james/project/trunk/server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQSupport.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQSupport.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQSupport.java (original)
+++ james/project/trunk/server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQSupport.java Tue Jan 26 10:24:54 2016
@@ -28,16 +28,16 @@ public interface ActiveMQSupport extends
/**
* The name of the Queue the mail is stored in
*/
- final static String JAMES_QUEUE_NAME = "JAMES_QUEUE_NAME";
+ String JAMES_QUEUE_NAME = "JAMES_QUEUE_NAME";
/**
* The URL of the Blobmessage content
*/
- final static String JAMES_BLOB_URL = "JAMES_BLOB_URL";
+ String JAMES_BLOB_URL = "JAMES_BLOB_URL";
/**
* Indicate that the Blobmessage content is reused for a new message
*/
- final static String JAMES_REUSE_BLOB_URL = " JAMES_REUSE_BLOB_URL";
+ String JAMES_REUSE_BLOB_URL = " JAMES_REUSE_BLOB_URL";
}
Modified: james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailPrioritySupport.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailPrioritySupport.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailPrioritySupport.java (original)
+++ james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailPrioritySupport.java Tue Jan 26 10:24:54 2016
@@ -24,13 +24,13 @@ package org.apache.james.queue.api;
public interface MailPrioritySupport {
/** Handle mail with lowest priority */
- final static int LOW_PRIORITY = 0;
+ int LOW_PRIORITY = 0;
/** Handle mail with normal priority (this is the default) */
- final static int NORMAL_PRIORITY = 5;
+ int NORMAL_PRIORITY = 5;
/** Handle mail with highest priority */
- final static int HIGH_PRIORITY = 9;
+ int HIGH_PRIORITY = 9;
/**
* Attribute name for support if priority. If the attribute is set and
@@ -38,5 +38,5 @@ public interface MailPrioritySupport {
* higher priority to the head of the queue (so the mails are faster
* handled).
*/
- final static String MAIL_PRIORITY = "MAIL_PRIORITY";
+ String MAIL_PRIORITY = "MAIL_PRIORITY";
}
Modified: james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueue.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueue.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueue.java (original)
+++ james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueue.java Tue Jan 26 10:24:54 2016
@@ -60,7 +60,7 @@ public interface MailQueue {
/**
* No delay for queued {@link MailQueueItem}
*/
- final static int NO_DELAY = -1;
+ int NO_DELAY = -1;
/**
* Enqueue the Mail to the queue. The given delay and unit are used to
@@ -109,7 +109,7 @@ public interface MailQueue {
/**
*
*/
- public interface MailQueueItem {
+ interface MailQueueItem {
/**
* Return the dequeued {@link Mail}
Modified: james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueueFactory.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueueFactory.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueueFactory.java (original)
+++ james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/MailQueueFactory.java Tue Jan 26 10:24:54 2016
@@ -27,7 +27,7 @@ public interface MailQueueFactory {
/**
* {@link MailQueue} which is used for spooling the messages
*/
- final static String SPOOL = "spool";
+ String SPOOL = "spool";
/**
* Return the {@link MailQueue} for the name.
Modified: james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/ManageableMailQueue.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/ManageableMailQueue.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/ManageableMailQueue.java (original)
+++ james/project/trunk/server/queue/queue-api/src/main/java/org/apache/james/queue/api/ManageableMailQueue.java Tue Jan 26 10:24:54 2016
@@ -27,7 +27,7 @@ import org.apache.mailet.Mail;
*/
public interface ManageableMailQueue extends MailQueue {
- public enum Type {
+ enum Type {
Sender, Recipient, Name
}
@@ -37,7 +37,7 @@ public interface ManageableMailQueue ext
* @return size
* @throws MailQueueException
*/
- public long getSize() throws MailQueueException;
+ long getSize() throws MailQueueException;
/**
* Flush the queue, which means it will make all message ready for dequeue
@@ -77,7 +77,7 @@ public interface ManageableMailQueue ext
* {@link Iterator} subclass which allows to browse the content of a queue.
* The content is not meant to be modifiable, everything is just READ-ONLY!
*/
- public interface MailQueueIterator extends Iterator<MailQueueItemView> {
+ interface MailQueueIterator extends Iterator<MailQueueItemView> {
/**
* Close the iterator. After this was called the iterator MUST NOT be
@@ -89,7 +89,7 @@ public interface ManageableMailQueue ext
/**
* Represent a View over a queue {@link MailQueue.MailQueueItem}
*/
- public interface MailQueueItemView {
+ interface MailQueueItemView {
/**
* Return the Mail
Modified: james/project/trunk/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSSupport.java
URL: http://svn.apache.org/viewvc/james/project/trunk/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSSupport.java?rev=1726760&r1=1726759&r2=1726760&view=diff
==============================================================================
--- james/project/trunk/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSSupport.java (original)
+++ james/project/trunk/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSSupport.java Tue Jan 26 10:24:54 2016
@@ -24,42 +24,42 @@ package org.apache.james.queue.jms;
public interface JMSSupport {
/** JMS Property which holds the recipient as String */
- final static String JAMES_MAIL_RECIPIENTS = "JAMES_MAIL_RECIPIENTS";
+ String JAMES_MAIL_RECIPIENTS = "JAMES_MAIL_RECIPIENTS";
/** JMS Property which holds the sender as String */
- final static String JAMES_MAIL_SENDER = "JAMES_MAIL_SENDER";
+ String JAMES_MAIL_SENDER = "JAMES_MAIL_SENDER";
/** JMS Property which holds the error message as String */
- final static String JAMES_MAIL_ERROR_MESSAGE = "JAMES_MAIL_ERROR_MESSAGE";
+ String JAMES_MAIL_ERROR_MESSAGE = "JAMES_MAIL_ERROR_MESSAGE";
/** JMS Property which holds the last updated time as long (ms) */
- final static String JAMES_MAIL_LAST_UPDATED = "JAMES_MAIL_LAST_UPDATED";
+ String JAMES_MAIL_LAST_UPDATED = "JAMES_MAIL_LAST_UPDATED";
/** JMS Property which holds the mail size as long (bytes) */
- final static String JAMES_MAIL_MESSAGE_SIZE = "JAMES_MAIL_MESSAGE_SIZE";
+ String JAMES_MAIL_MESSAGE_SIZE = "JAMES_MAIL_MESSAGE_SIZE";
/** JMS Property which holds the mail name as String */
- final static String JAMES_MAIL_NAME = "JAMES_MAIL_NAME";
+ String JAMES_MAIL_NAME = "JAMES_MAIL_NAME";
/**
* Separator which is used for separate an array of String values in the JMS
* Property value
*/
- final static String JAMES_MAIL_SEPARATOR = ";";
+ String JAMES_MAIL_SEPARATOR = ";";
/** JMS Property which holds the remote hostname as String */
- final static String JAMES_MAIL_REMOTEHOST = "JAMES_MAIL_REMOTEHOST";
+ String JAMES_MAIL_REMOTEHOST = "JAMES_MAIL_REMOTEHOST";
/** JMS Property which holds the remote ipaddress as String */
- final static String JAMES_MAIL_REMOTEADDR = "JAMES_MAIL_REMOTEADDR";
+ String JAMES_MAIL_REMOTEADDR = "JAMES_MAIL_REMOTEADDR";
/** JMS Property which holds the mail state as String */
- final static String JAMES_MAIL_STATE = "JAMES_MAIL_STATE";
+ String JAMES_MAIL_STATE = "JAMES_MAIL_STATE";
/** JMS Property which holds the mail attribute names as String */
- final static String JAMES_MAIL_ATTRIBUTE_NAMES = "JAMES_MAIL_ATTRIBUTE_NAMES";
+ String JAMES_MAIL_ATTRIBUTE_NAMES = "JAMES_MAIL_ATTRIBUTE_NAMES";
/** JMS Property which holds next delivery time as long (ms) */
- final static String JAMES_NEXT_DELIVERY = "JAMES_NEXT_DELIVERY";
+ String JAMES_NEXT_DELIVERY = "JAMES_NEXT_DELIVERY";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org