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 bt...@apache.org on 2019/11/14 02:09:30 UTC
[james-project] 13/32: [Refactoring] StatusCommandParser: reorder
methods by visibility
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit ac7e71f75e161b0809ca50ed99e8514382249f8b
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Nov 13 11:56:07 2019 +0700
[Refactoring] StatusCommandParser: reorder methods by visibility
---
.../james/imap/decode/parser/StatusCommandParser.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/StatusCommandParser.java b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/StatusCommandParser.java
index 88bebe0..03262f4 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/StatusCommandParser.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/parser/StatusCommandParser.java
@@ -45,6 +45,14 @@ public class StatusCommandParser extends AbstractImapCommandParser {
super(ImapCommand.authenticatedStateCommand(ImapConstants.STATUS_COMMAND_NAME));
}
+ @Override
+ protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, Tag tag, ImapSession session) throws DecodingException {
+ String mailboxName = request.mailbox();
+ StatusDataItems statusDataItems = statusDataItems(request);
+ request.eol();
+ return new StatusRequest(command, mailboxName, statusDataItems, tag);
+ }
+
private StatusDataItems statusDataItems(ImapRequestLineReader request) throws DecodingException {
ImmutableList<String> words = splitWords(request);
@@ -94,12 +102,4 @@ public class StatusCommandParser extends AbstractImapCommandParser {
throw new DecodingException(HumanReadableText.ILLEGAL_ARGUMENTS, "Unknown status item: '" + nextWord + "'");
}
}
-
- @Override
- protected ImapMessage decode(ImapCommand command, ImapRequestLineReader request, Tag tag, ImapSession session) throws DecodingException {
- String mailboxName = request.mailbox();
- StatusDataItems statusDataItems = statusDataItems(request);
- request.eol();
- return new StatusRequest(command, mailboxName, statusDataItems, tag);
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org