Author: norman
Date: Fri Jun 17 19:21:43 2011
New Revision: 1136992
URL: http://svn.apache.org/viewvc?rev=1136992&view=rev
Log:
Just some coding style adjustments
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/Authenticator.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapper.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapperFactory.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapperFactory.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Mailbox.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Message.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Property.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearchIndex.java
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/user/model/Subscription.java
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/Authenticator.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/Authenticator.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/Authenticator.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/Authenticator.java
Fri Jun 17 19:21:43 2011
@@ -32,5 +32,5 @@ public interface Authenticator {
* @return true when the user is authentic,
* false otherwise
*/
- public boolean isAuthentic(String userid, CharSequence passwd);
+ boolean isAuthentic(String userid, CharSequence passwd);
}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapper.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapper.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapper.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapper.java
Fri Jun 17 19:21:43 2011
@@ -39,7 +39,7 @@ public interface MailboxMapper<Id> exten
* @param mailbox
* @throws MailboxException
*/
- public abstract void save(Mailbox<Id> mailbox) throws MailboxException;
+ void save(Mailbox<Id> mailbox) throws MailboxException;
/**
* Delete the given {@link Mailbox} from the underlying storage
@@ -47,7 +47,7 @@ public interface MailboxMapper<Id> exten
* @param mailbox
* @throws MailboxException
*/
- public abstract void delete(Mailbox<Id> mailbox) throws MailboxException;
+ void delete(Mailbox<Id> mailbox) throws MailboxException;
/**
@@ -58,7 +58,7 @@ public interface MailboxMapper<Id> exten
* @throws MailboxException
* @throws MailboxNotFoundException
*/
- public abstract Mailbox<Id> findMailboxByPath(MailboxPath mailboxName)
+ Mailbox<Id> findMailboxByPath(MailboxPath mailboxName)
throws MailboxException, MailboxNotFoundException;
/**
@@ -68,7 +68,7 @@ public interface MailboxMapper<Id> exten
* @return mailboxList
* @throws MailboxException
*/
- public abstract List<Mailbox<Id>> findMailboxWithPathLike(MailboxPath
mailboxPath)
+ List<Mailbox<Id>> findMailboxWithPathLike(MailboxPath mailboxPath)
throws MailboxException;
/**
@@ -80,7 +80,7 @@ public interface MailboxMapper<Id> exten
* @throws MailboxException
* @throws MailboxNotFoundException
*/
- public abstract boolean hasChildren(Mailbox<Id> mailbox, char delimiter)
+ boolean hasChildren(Mailbox<Id> mailbox, char delimiter)
throws MailboxException, MailboxNotFoundException;
/**
@@ -89,5 +89,5 @@ public interface MailboxMapper<Id> exten
* @return mailboxList
* @throws MailboxException
*/
- public abstract List<Mailbox<Id>> list() throws MailboxException;
+ List<Mailbox<Id>> list() throws MailboxException;
}
\ No newline at end of file
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapperFactory.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapperFactory.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapperFactory.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MailboxMapperFactory.java
Fri Jun 17 19:21:43 2011
@@ -29,5 +29,5 @@ public interface MailboxMapperFactory<Id
* @param session
* @return mapper
*/
- public MailboxMapper<Id> getMailboxMapper(MailboxSession session) throws
MailboxException;
+ MailboxMapper<Id> getMailboxMapper(MailboxSession session) throws
MailboxException;
}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapper.java
Fri Jun 17 19:21:43 2011
@@ -47,7 +47,7 @@ public interface MessageMapper<Id> exten
* @param callback callback object
* @throws MailboxException
*/
- public abstract void findInMailbox(Mailbox<Id> mailbox, MessageRange set,
MessageCallback<Id> callback)
+ void findInMailbox(Mailbox<Id> mailbox, MessageRange set,
MessageCallback<Id> callback)
throws MailboxException;
/**
@@ -58,7 +58,7 @@ public interface MessageMapper<Id> exten
* @return uids
* @throws MailboxException
*/
- public abstract Map<Long, MessageMetaData>
expungeMarkedForDeletionInMailbox(
+ Map<Long, MessageMetaData> expungeMarkedForDeletionInMailbox(
Mailbox<Id> mailbox, final MessageRange set)
throws MailboxException;
@@ -69,7 +69,7 @@ public interface MessageMapper<Id> exten
* @return count
* @throws MailboxException
*/
- public abstract long countMessagesInMailbox(Mailbox<Id> mailbox)
+ long countMessagesInMailbox(Mailbox<Id> mailbox)
throws MailboxException;
/**
@@ -79,7 +79,7 @@ public interface MessageMapper<Id> exten
* @return unseenCount
* @throws StorageException
*/
- public abstract long countUnseenMessagesInMailbox(Mailbox<Id> mailbox)
+ long countUnseenMessagesInMailbox(Mailbox<Id> mailbox)
throws MailboxException;
@@ -90,7 +90,7 @@ public interface MessageMapper<Id> exten
* @param message
* @throws StorageException
*/
- public abstract void delete(Mailbox<Id> mailbox, Message<Id> message)
throws MailboxException;
+ void delete(Mailbox<Id> mailbox, Message<Id> message) throws
MailboxException;
/**
* Return the uid of the first unseen message. If non can be found null
will get returned
@@ -100,7 +100,7 @@ public interface MessageMapper<Id> exten
* @return uid or null
* @throws StorageException
*/
- public abstract Long findFirstUnseenMessageUid(Mailbox<Id> mailbox) throws
MailboxException;
+ Long findFirstUnseenMessageUid(Mailbox<Id> mailbox) throws
MailboxException;
/**
* Return a List of {@link MailboxMembership} which are recent.
@@ -110,7 +110,7 @@ public interface MessageMapper<Id> exten
* @return recentList
* @throws StorageException
*/
- public abstract List<Long> findRecentMessageUidsInMailbox(Mailbox<Id>
mailbox) throws MailboxException;
+ List<Long> findRecentMessageUidsInMailbox(Mailbox<Id> mailbox) throws
MailboxException;
/**
@@ -123,7 +123,7 @@ public interface MessageMapper<Id> exten
* @return uid
* @throws StorageException
*/
- public abstract MessageMetaData add(Mailbox<Id> mailbox, Message<Id>
message) throws MailboxException;
+ MessageMetaData add(Mailbox<Id> mailbox, Message<Id> message) throws
MailboxException;
/**
* Update flags for the given {@link MessageRange}. Only the flags may be
modified after a message was saved to a mailbox.
@@ -136,7 +136,7 @@ public interface MessageMapper<Id> exten
* @return updatedFlags
* @throws MailboxException
*/
- public abstract Iterator<UpdatedFlags> updateFlags(Mailbox<Id> mailbox,
final Flags flags, final boolean value, final boolean replace,
+ Iterator<UpdatedFlags> updateFlags(Mailbox<Id> mailbox, final Flags flags,
final boolean value, final boolean replace,
final MessageRange set) throws MailboxException;
/**
@@ -148,7 +148,7 @@ public interface MessageMapper<Id> exten
* @param original the original to copy
* @throws StorageException
*/
- public abstract MessageMetaData copy(Mailbox<Id> mailbox,Message<Id>
original) throws MailboxException;
+ MessageMetaData copy(Mailbox<Id> mailbox,Message<Id> original) throws
MailboxException;
/**
@@ -158,7 +158,7 @@ public interface MessageMapper<Id> exten
* @return lastUid
* @throws MailboxException
*/
- public abstract long getLastUid(Mailbox<Id> mailbox) throws
MailboxException;;
+ long getLastUid(Mailbox<Id> mailbox) throws MailboxException;;
/**
@@ -169,7 +169,7 @@ public interface MessageMapper<Id> exten
* @return lastUid
* @throws MailboxException
*/
- public abstract long getHighestModSeq(Mailbox<Id> mailbox) throws
MailboxException;
+ long getHighestModSeq(Mailbox<Id> mailbox) throws MailboxException;
public interface MessageCallback<Id> {
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapperFactory.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapperFactory.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapperFactory.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/MessageMapperFactory.java
Fri Jun 17 19:21:43 2011
@@ -30,6 +30,6 @@ public interface MessageMapperFactory<Id
* @param mailboxId
* @return mapper
*/
- public MessageMapper<Id> getMessageMapper(MailboxSession session) throws
MailboxException;
+ MessageMapper<Id> getMessageMapper(MailboxSession session) throws
MailboxException;
}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Mailbox.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Mailbox.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Mailbox.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Mailbox.java
Fri Jun 17 19:21:43 2011
@@ -27,49 +27,49 @@ public interface Mailbox<Id> {
* Gets the unique mailbox ID.
* @return mailbox id
*/
- public abstract Id getMailboxId();
+ Id getMailboxId();
/**
* Gets the current namespace for this mailbox.
* @return not null
*/
- public abstract String getNamespace();
+ String getNamespace();
/**
* Sets the current namespace for this mailbox.
* @param name not null
*/
- public abstract void setNamespace(String namespace);
+ void setNamespace(String namespace);
/**
* Gets the current user for this mailbox.
* @return not null
*/
- public abstract String getUser();
+ String getUser();
/**
* Sets the current user for this mailbox.
* @param name not null
*/
- public abstract void setUser(String user);
+ void setUser(String user);
/**
* Gets the current name for this mailbox.
* @return not null
*/
- public abstract String getName();
+ String getName();
/**
* Sets the current name for this mailbox.
* @param name not null
*/
- public abstract void setName(String name);
+ void setName(String name);
/**
* Gets the current UID VALIDITY for this mailbox.
* @return uid validity
*/
- public abstract long getUidValidity();
+ long getUidValidity();
/**
* Return the last known uid for this mailbox which
@@ -78,7 +78,7 @@ public interface Mailbox<Id> {
*
* @return lastKnownUid
*/
- public abstract long getLastKnownUid();
+ long getLastKnownUid();
/**
* Return the highest known mod-seq for this mailbox which
@@ -87,5 +87,5 @@ public interface Mailbox<Id> {
*
* @return highestKnownModSeq
*/
- public abstract long getHighestKnownModSeq();
+ long getHighestKnownModSeq();
}
\ No newline at end of file
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Message.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Message.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Message.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Message.java
Fri Jun 17 19:21:43 2011
@@ -32,21 +32,21 @@ import javax.mail.Flags;
*/
public interface Message<Id> extends Comparable<Message<Id>>{
- public abstract Date getInternalDate();
+ Date getInternalDate();
/**
* Return the mailbox id of the linked mailbox
*
* @return mailboxId
*/
- public abstract Id getMailboxId();
+ Id getMailboxId();
/**
* Return the uid
*
* @return uid
*/
- public abstract long getUid();
+ long getUid();
/**
* Set the uid for the message. This must be called before the message is
added to the store
@@ -54,7 +54,7 @@ public interface Message<Id> extends Com
*
* @param uid
*/
- public abstract void setUid(long uid);
+ void setUid(long uid);
@@ -64,56 +64,56 @@ public interface Message<Id> extends Com
*
* @param uid
*/
- public abstract void setModSeq(long modSeq);
+ void setModSeq(long modSeq);
/**
* Return the mod-sequence for the message
*
* @return message
*/
- public abstract long getModSeq();
+ long getModSeq();
/**
* Return if it was marked as answered
*
* @return answered
*/
- public abstract boolean isAnswered();
+ boolean isAnswered();
/**
* Return if it was mark as deleted
*
* @return deleted
*/
- public abstract boolean isDeleted();
+ boolean isDeleted();
/**
* Return if it was mark as draft
*
* @return draft
*/
- public abstract boolean isDraft();
+ boolean isDraft();
/**
* Return if it was flagged
*
* @return flagged
*/
- public abstract boolean isFlagged();
+ boolean isFlagged();
/**
* Return if it was marked as recent
*
* @return recent
*/
- public abstract boolean isRecent();
+ boolean isRecent();
/**
* Return if it was marked as seen
*
* @return seen
*/
- public abstract boolean isSeen();
+ boolean isSeen();
/**
@@ -121,7 +121,7 @@ public interface Message<Id> extends Com
*
* @param flags
*/
- public abstract void setFlags(Flags flags);
+ void setFlags(Flags flags);
/**
* Creates a new flags instance populated
@@ -129,7 +129,7 @@ public interface Message<Id> extends Com
*
* @return new instance, not null
*/
- public abstract Flags createFlags();
+ Flags createFlags();
/**
@@ -139,35 +139,35 @@ public interface Message<Id> extends Com
* on every call, which basicly means it need to start at position 0
* @return body, not null
*/
- public abstract InputStream getBodyContent() throws IOException;
+ InputStream getBodyContent() throws IOException;
/**
* Gets the top level MIME content media type.
*
* @return top level MIME content media type, or null if default
*/
- public abstract String getMediaType();
+ String getMediaType();
/**
* Gets the MIME content subtype.
*
* @return the MIME content subtype, or null if default
*/
- public abstract String getSubType();
+ String getSubType();
/**
* The number of octets contained in the body of this document.
*
* @return number of octets
*/
- public abstract long getBodyOctets();
+ long getBodyOctets();
/**
* The number of octets contained in the full content of this document.
*
* @return number of octets
*/
- public abstract long getFullContentOctets();
+ long getFullContentOctets();
/**
* Gets the number of CRLF in a textual document.
@@ -185,7 +185,7 @@ public interface Message<Id> extends Com
* @return header
* @throws IOException
*/
- public abstract InputStream getHeaderContent() throws IOException;
+ InputStream getHeaderContent() throws IOException;
/**
* Gets a read-only list of meta-data properties.
@@ -194,5 +194,5 @@ public interface Message<Id> extends Com
*
* @return unmodifiable list of meta-data, not null
*/
- public abstract List<Property> getProperties();
+ List<Property> getProperties();
}
\ No newline at end of file
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Property.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Property.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Property.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/mail/model/Property.java
Fri Jun 17 19:21:43 2011
@@ -43,19 +43,19 @@ public interface Property {
* Gets the namespace for the name.
* @return not null
*/
- public String getNamespace();
+ String getNamespace();
/**
* Gets the local part of the name of the property.
* @return not null
*/
- public String getLocalName();
+ String getLocalName();
/**
* Gets the value for this property.
* @return not null
*/
- public String getValue();
+ String getValue();
}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearchIndex.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearchIndex.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearchIndex.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearchIndex.java
Fri Jun 17 19:21:43 2011
@@ -45,5 +45,5 @@ public interface MessageSearchIndex<Id>
* @return
* @throws MailboxException
*/
- public Iterator<Long> search(MailboxSession session, Mailbox<Id> mailbox,
SearchQuery searchQuery) throws MailboxException;
+ Iterator<Long> search(MailboxSession session, Mailbox<Id> mailbox,
SearchQuery searchQuery) throws MailboxException;
}
Modified:
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/user/model/Subscription.java
URL:
http://svn.apache.org/viewvc/james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/user/model/Subscription.java?rev=1136992&r1=1136991&r2=1136992&view=diff
==============================================================================
---
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/user/model/Subscription.java
(original)
+++
james/mailbox/trunk/store/src/main/java/org/apache/james/mailbox/store/user/model/Subscription.java
Fri Jun 17 19:21:43 2011
@@ -33,13 +33,13 @@ public interface Subscription {
*
* @return not null
*/
- public abstract String getMailbox();
+ String getMailbox();
/**
* Gets the name of the subscribed user.
*
* @return not null
*/
- public abstract String getUser();
+ String getUser();
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]