Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
- Anon classes with lambdas
- Unused declared exceptions
- Spelling
  • Loading branch information
marcelmay committed Jan 29, 2021
1 parent 0fa47ac commit 17278ff
Show file tree
Hide file tree
Showing 33 changed files with 2,741 additions and 2,884 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public interface GreenMailOperations {
boolean waitForIncomingEmail(int emailCount);

/**
* @return Returns all messags in all folders for all users
* @return Returns all messages in all folders for all users
* {@link com.icegreen.greenmail.util.GreenMailUtil} has a bunch of static helper methods to extract body text etc.
*/
MimeMessage[] getReceivedMessages();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected String buildLocalPartLogin(String localPart, String domain) {

protected void extractAndAddUser(GreenMailConfiguration configuration, BinaryOperator<String> buildLogin, String user) {
// login:pwd@domain
String[] userParts = user.split(":|@");
String[] userParts = user.split("[:@]");
switch (userParts.length) {
case 2:
configuration.withUser(userParts[0], userParts[1]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
*/
public final class ImapRequestHandler {
protected final Logger log = LoggerFactory.getLogger(getClass());
private ImapCommandFactory imapCommands = new ImapCommandFactory();
private CommandParser parser = new CommandParser();
private final ImapCommandFactory imapCommands = new ImapCommandFactory();
private final CommandParser parser = new CommandParser();
private static final String REQUEST_SYNTAX = "Protocol Error: Was expecting <tag SPACE command [arguments]>";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* to the client.
*/
public class ImapResponse implements ImapConstants {
private InternetPrintWriter writer;
private final InternetPrintWriter writer;
private String tag = UNTAGGED;

public ImapResponse(OutputStream output) {
Expand Down
Loading

0 comments on commit 17278ff

Please sign in to comment.