Author: norman
Date: Thu Jun 16 18:41:24 2011
New Revision: 1136594

URL: http://svn.apache.org/viewvc?rev=1136594&view=rev
Log:
Just some coding style adjustments

Modified:
    james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/Content.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/InputStreamContent.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxManager.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxMetaData.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxQuery.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxSession.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageManager.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageResult.java
    
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MimeDescriptor.java

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/Content.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/Content.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/Content.java 
(original)
+++ james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/Content.java 
Thu Jun 16 18:41:24 2011
@@ -41,7 +41,7 @@ public interface Content {
      * @throws IOException
      *             when channel IO fails
      */
-    public void writeTo(WritableByteChannel channel) throws IOException;
+    void writeTo(WritableByteChannel channel) throws IOException;
 
     /**
      * Size (in octets) of the content.
@@ -49,5 +49,5 @@ public interface Content {
      * @return number of octets to be written
      * @throws MessagingException
      */
-    public long size();
+    long size();
 }
\ No newline at end of file

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/InputStreamContent.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/InputStreamContent.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/InputStreamContent.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/InputStreamContent.java
 Thu Jun 16 18:41:24 2011
@@ -32,5 +32,5 @@ public interface InputStreamContent exte
      * @return content
      * @throws IOException
      */
-    public InputStream getInputStream() throws IOException;
+    InputStream getInputStream() throws IOException;
 }

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxManager.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxManager.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxManager.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxManager.java
 Thu Jun 16 18:41:24 2011
@@ -176,7 +176,7 @@ public interface MailboxManager extends 
      * @throws MailboxException
      *             when the creation fails for other reasons
      */
-    public MailboxSession createSystemSession(String userName, Logger log) 
throws BadCredentialsException, MailboxException;
+    MailboxSession createSystemSession(String userName, Logger log) throws 
BadCredentialsException, MailboxException;
 
     /**
      * Autenticates the given user against the given password.<br>
@@ -230,6 +230,6 @@ public interface MailboxManager extends 
      * @return pathList
      * @throws MailboxException
      */
-    public List<MailboxPath> list(MailboxSession session) throws 
MailboxException;
+    List<MailboxPath> list(MailboxSession session) throws MailboxException;
 
 }

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxMetaData.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxMetaData.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxMetaData.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxMetaData.java
 Thu Jun 16 18:41:24 2011
@@ -59,12 +59,12 @@ public interface MailboxMetaData {
      * 
      * @return not null
      */
-    public Children inferiors();
+    Children inferiors();
 
     /**
      * Gets the RFC3501 Selectability flag.
      */
-    public Selectability getSelectability();
+    Selectability getSelectability();
 
     /**
      * Return the delimiter

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxQuery.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxQuery.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxQuery.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxQuery.java
 Thu Jun 16 18:41:24 2011
@@ -24,7 +24,7 @@ import java.util.regex.Pattern;
 /**
  * Expresses select criteria for mailboxes.
  */
-public class MailboxQuery {
+public final class MailboxQuery {
 
     private final MailboxPath base;
 

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxSession.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxSession.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxSession.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MailboxSession.java
 Thu Jun 16 18:41:24 2011
@@ -49,40 +49,40 @@ public interface MailboxSession {
      * 
      * @return type
      */
-    public SessionType getType();
+    SessionType getType();
     
     /**
      * Gets the session ID.
      * 
      * @return session id
      */
-    public long getSessionId();
+    long getSessionId();
 
     /**
      * Is this session open?
      * 
      * @return true if the session is open, false otherwise
      */
-    public boolean isOpen();
+    boolean isOpen();
 
     /**
      * Closes this session.
      */
-    public void close();
+    void close();
 
     /**
      * Gets the logger for this session context.
      * 
      * @return not null
      */
-    public Logger getLog();
+    Logger getLog();
 
     /**
      * Gets the user executing this session.
      * 
      * @return not null
      */
-    public User getUser();
+    User getUser();
 
     /**
      * A mailbox user. Useful for specialist mailbox implementation.
@@ -93,14 +93,14 @@ public interface MailboxSession {
          * 
          * @return not null
          */
-        public String getUserName();
+        String getUserName();
 
         /**
          * Return the Password for the logged in user
          * 
          * @return password
          */
-        public String getPassword();
+        String getPassword();
 
         /**
          * Gets acceptable localisation for this user in preference order.<br>
@@ -109,7 +109,7 @@ public interface MailboxSession {
          * 
          * @return not null, when empty the default local should be used
          */
-        public List<Locale> getLocalePreferences();
+        List<Locale> getLocalePreferences();
     }
 
     /**
@@ -121,7 +121,7 @@ public interface MailboxSession {
      * 
      * @return Personal Namespace, not null
      */
-    public String getPersonalSpace();
+    String getPersonalSpace();
 
     /**
      * Gets the <a href='http://www.isi.edu/in-notes/rfc2342.txt' rel='tag'>RFC
@@ -132,7 +132,7 @@ public interface MailboxSession {
      * 
      * @return Other Users Namespace or null when there is non available
      */
-    public String getOtherUsersSpace();
+    String getOtherUsersSpace();
 
     /**
      * Iterates the <a href='http://www.isi.edu/in-notes/rfc2342.txt'
@@ -141,19 +141,19 @@ public interface MailboxSession {
      * 
      * @return not null though possibly empty
      */
-    public Collection<String> getSharedSpaces();
+    Collection<String> getSharedSpaces();
 
     /**
      * Return the stored attributes for this {@link MailboxSession}.
      * 
      * @return attributes
      */
-    public Map<Object, Object> getAttributes();
+    Map<Object, Object> getAttributes();
 
     /**
      * Return server side, folder path separator
      * 
      * @return path separator
      */
-    public char getPathDelimiter();
+    char getPathDelimiter();
 }

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageManager.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageManager.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageManager.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageManager.java
 Thu Jun 16 18:41:24 2011
@@ -196,14 +196,14 @@ public interface MessageManager {
          * 
          * @return the uids flagged RECENT in this mailbox,
          */
-        public List<Long> getRecent();
+        List<Long> getRecent();
 
         /**
          * Gets the number of recent messages.
          * 
          * @return the number of messages flagged RECENT in this mailbox
          */
-        public long countRecent();
+        long countRecent();
 
         /**
          * Gets the flags which can be stored by this mailbox.

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageResult.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageResult.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageResult.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MessageResult.java
 Thu Jun 16 18:41:24 2011
@@ -91,7 +91,7 @@ public interface MessageResult extends C
          * @see #BODY_CONTENT
          * @see #MIME_CONTENT
          */
-        public int content();
+        int content();
 
         /**
          * Gets contents to be fetched for contained parts. For each part to be
@@ -100,7 +100,7 @@ public interface MessageResult extends C
          * @return <code>Set</code> of {@link PartContentDescriptor}, or null 
if
          *         there is no part content to be fetched
          */
-        public Set<PartContentDescriptor> getPartContentDescriptors();
+        Set<PartContentDescriptor> getPartContentDescriptors();
 
         /**
          * Describes the contents to be fetched for a mail part. All
@@ -119,14 +119,14 @@ public interface MessageResult extends C
              * @see #FULL_CONTENT
              * @see #BODY_CONTENT
              */
-            public int content();
+            int content();
 
             /**
              * Path describing the part to be fetched.
              * 
              * @return path describing the part, not null
              */
-            public MimePath path();
+            MimePath path();
         }
     }
 
@@ -167,7 +167,7 @@ public interface MessageResult extends C
          * @return name of this header
          * @throws MessagingException
          */
-        public String getName() throws MailboxException;
+        String getName() throws MailboxException;
 
         /**
          * Gets the (unparsed) value of this header.
@@ -175,7 +175,7 @@ public interface MessageResult extends C
          * @return value of this header
          * @throws MessagingException
          */
-        public String getValue() throws MailboxException;
+        String getValue() throws MailboxException;
     }
 
     /**
@@ -246,6 +246,6 @@ public interface MessageResult extends C
          * 
          * @return part positions describing the path
          */
-        public int[] getPositions();
+        int[] getPositions();
     }
 }

Modified: 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MimeDescriptor.java
URL: 
http://svn.apache.org/viewvc/james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MimeDescriptor.java?rev=1136594&r1=1136593&r2=1136594&view=diff
==============================================================================
--- 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MimeDescriptor.java
 (original)
+++ 
james/mailbox/trunk/api/src/main/java/org/apache/james/mailbox/MimeDescriptor.java
 Thu Jun 16 18:41:24 2011
@@ -32,49 +32,49 @@ public interface MimeDescriptor extends 
      * 
      * @return top level MIME content media type, or null if default
      */
-    public String getMimeType();
+    String getMimeType();
 
     /**
      * Gets the MIME content subtype.
      * 
      * @return the MIME content subtype, or null if default
      */
-    public String getMimeSubType();
+    String getMimeSubType();
 
     /**
      * Gets the MIME <code>Content-ID</code> header value.
      * 
      * @return MIME <code>Content-ID</code>, possibly null
      */
-    public String getContentID();
+    String getContentID();
 
     /**
      * Gets MIME <code>Content-Description</code> header value.
      * 
      * @return MIME <code>Content-Description</code>, possibly null
      */
-    public String getContentDescription();
+    String getContentDescription();
 
     /**
      * Gets MIME <code>Content-Location</code> header value.
      * 
      * @return parsed MIME <code>Content-Location</code>, possibly null
      */
-    public String getContentLocation();
+    String getContentLocation();
 
     /**
      * Gets MIME <code>Content-MD5</code> header value.
      * 
      * @return parsed MIME <code>Content-MD5</code>, possibly null
      */
-    public String getContentMD5();
+    String getContentMD5();
 
     /**
      * Gets the MIME content transfer encoding.
      * 
      * @return MIME <code>Content-Transfer-Encoding</code>, possibly null
      */
-    public String getTransferContentEncoding();
+    String getTransferContentEncoding();
 
     /**
      * Gets the languages, From the MIME <code>Content-Language</code> header
@@ -82,7 +82,7 @@ public interface MimeDescriptor extends 
      * 
      * @return <code>List</code> of <code>String</code> names
      */
-    public List<String> getLanguages();
+    List<String> getLanguages();
 
     /**
      * Gets MIME <code>Content-Disposition</code>.
@@ -90,14 +90,14 @@ public interface MimeDescriptor extends 
      * @return <code>Content-Disposition</code>, or null if no disposition
      *         header exists
      */
-    public String getDisposition();
+    String getDisposition();
 
     /**
      * Gets MIME <code>Content-Disposition</code> parameters.
      * 
      * @return <code>Content-Disposition</code> values indexed by names
      */
-    public Map<String, String> getDispositionParams();
+    Map<String, String> getDispositionParams();
 
     /**
      * Gets the number of lines of text in a part of type <code>TEXT</code> 
when
@@ -106,14 +106,14 @@ public interface MimeDescriptor extends 
      * @return <code>CRLF</code> count when a <code>TEXT</code> type, otherwise
      *         -1
      */
-    public long getLines();
+    long getLines();
 
     /**
      * The number of octets contained in the body of this part.
      * 
      * @return number of octets
      */
-    public long getBodyOctets();
+    long getBodyOctets();
 
     /**
      * Gets parts.
@@ -121,7 +121,7 @@ public interface MimeDescriptor extends 
      * @return <code>MimeDescriptor</code> <code>Iterator</code> when a
      *         composite top level MIME media type, null otherwise
      */
-    public Iterator<MimeDescriptor> parts();
+    Iterator<MimeDescriptor> parts();
 
     /**
      * Gets embedded message.
@@ -129,12 +129,12 @@ public interface MimeDescriptor extends 
      * @return <code>MimeDescriptor</code> when top level MIME type is
      *         <code>message</code>, null otherwise
      */
-    public MimeDescriptor embeddedMessage();
+    MimeDescriptor embeddedMessage();
 
     /**
      * Gets MIME body parameters parsed from <code>Content-Type</code>.
      * 
      * @return <code>Header</code> <code>Iterator</code>, not null
      */
-    public Map<String, String> contentTypeParameters();
+    Map<String, String> contentTypeParameters();
 }
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to