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();
|
parseUntaggedResponse();
|
||||||
readTokens(response);
|
readTokens(response);
|
||||||
} else if (ch == '+') {
|
} else if (ch == '+') {
|
||||||
response.mCommandContinuationRequested =
|
response.mCommandContinuationRequested = parseCommandContinuationRequest();
|
||||||
parseCommandContinuationRequest();
|
|
||||||
parseResponseText(response);
|
parseResponseText(response);
|
||||||
} else {
|
} else {
|
||||||
response.mTag = parseTaggedResponse();
|
response.mTag = parseTaggedResponse();
|
||||||
@ -87,8 +86,7 @@ public class ImapResponseParser {
|
|||||||
response.mCompleted = true;
|
response.mCompleted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void parseResponseText(ImapResponse parent) throws IOException {
|
private void parseResponseText(ImapResponse parent) throws IOException {
|
||||||
|
|
||||||
skipIfSpace();
|
skipIfSpace();
|
||||||
|
|
||||||
int next = mIn.peek();
|
int next = mIn.peek();
|
||||||
@ -104,10 +102,9 @@ public class ImapResponseParser {
|
|||||||
// The rest is free-form text.
|
// The rest is free-form text.
|
||||||
parent.add(rest);
|
parent.add(rest);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void skipIfSpace() throws IOException {
|
private void skipIfSpace() throws IOException {
|
||||||
if (mIn.peek() == ' ') {
|
if (mIn.peek() == ' ') {
|
||||||
expect(' ');
|
expect(' ');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user