Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 40287 invoked from network); 27 Mar 2011 15:59:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2011 15:59:50 -0000 Received: (qmail 53010 invoked by uid 500); 27 Mar 2011 15:59:50 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 52958 invoked by uid 500); 27 Mar 2011 15:59:50 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 52951 invoked by uid 99); 27 Mar 2011 15:59:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 15:59:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Mar 2011 15:59:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CDEB82388994; Sun, 27 Mar 2011 15:59:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1085971 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java Date: Sun, 27 Mar 2011 15:59:28 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110327155928.CDEB82388994@eris.apache.org> Author: sebb Date: Sun Mar 27 15:59:28 2011 New Revision: 1085971 URL: http://svn.apache.org/viewvc?rev=1085971&view=rev Log: Trailing spaces Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java?rev=1085971&r1=1085970&r2=1085971&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java (original) +++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/IMAPReply.java Sun Mar 27 15:59:28 2011 @@ -56,7 +56,7 @@ public final class IMAPReply // Cannot be instantiated. private IMAPReply() {} - + /** * Checks if the reply line is untagged - e.g. "* OK ..." * @param line to be checked @@ -65,23 +65,23 @@ public final class IMAPReply public static boolean isUntagged(String line) { return line.startsWith(IMAP_UNTAGGED_PREFIX); } - + /** * Checks if the reply line is a continuation, i.e. starts with "+ " * @param line the line to be checked * @return {@code true} if the line is untagged */ public static boolean isContinuation(String line) { - return line.startsWith(IMAP_CONTINUATION_PREFIX); + return line.startsWith(IMAP_CONTINUATION_PREFIX); } private static final String TAGGED_RESPONSE = "^\\w+ (\\S+).*"; // TODO perhaps be less strict on tag match? // tag cannot contain: + ( ) { SP CTL % * " \ ] private static final Pattern TAGGED_PATTERN = Pattern.compile(TAGGED_RESPONSE); - + /** * Intepret the String reply code - OK, NO, BAD - in a tagged response as a integer. - * + * * @param line the tagged line to be checked * @return {@link #OK} or {@link #NO} or {@link #BAD} * @throws IOException if the input has an unexpected format @@ -89,13 +89,13 @@ public final class IMAPReply public static int getReplyCode(String line) throws IOException { return getReplyCode(line, TAGGED_PATTERN); } - - private static final String UNTAGGED_RESPONSE = "^\\* (\\S+).*"; + + private static final String UNTAGGED_RESPONSE = "^\\* (\\S+).*"; private static final Pattern UNTAGGED_PATTERN = Pattern.compile(UNTAGGED_RESPONSE); /** * Intepret the String reply code - OK, NO, BAD - in an untagged response as a integer. - * + * * @param line the untagged line to be checked * @return {@link #OK} or {@link #NO} or {@link #BAD} * @throws IOException if the input has an unexpected format @@ -125,7 +125,7 @@ public final class IMAPReply /** * Checks whether the reply code indicates success or not - * + * * @param replyCode the code to check * @return {@code true} if the code equals {@link #OK} */