mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Minor code cleanup
This commit is contained in:
parent
f8779095d9
commit
e9b0f82c11
@ -45,8 +45,7 @@ public class ImapResponseParser {
|
||||
parseUntaggedResponse();
|
||||
readTokens(response);
|
||||
} else if (ch == '+') {
|
||||
response.mCommandContinuationRequested =
|
||||
parseCommandContinuationRequest();
|
||||
response.mCommandContinuationRequested = parseCommandContinuationRequest();
|
||||
parseResponseText(response);
|
||||
} else {
|
||||
response.mTag = parseTaggedResponse();
|
||||
@ -87,8 +86,7 @@ public class ImapResponseParser {
|
||||
response.mCompleted = true;
|
||||
}
|
||||
|
||||
void parseResponseText(ImapResponse parent) throws IOException {
|
||||
|
||||
private void parseResponseText(ImapResponse parent) throws IOException {
|
||||
skipIfSpace();
|
||||
|
||||
int next = mIn.peek();
|
||||
@ -104,10 +102,9 @@ public class ImapResponseParser {
|
||||
// The rest is free-form text.
|
||||
parent.add(rest);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void skipIfSpace() throws IOException {
|
||||
private void skipIfSpace() throws IOException {
|
||||
if (mIn.peek() == ' ') {
|
||||
expect(' ');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user