diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 6bec7ef0..ef56feae 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1121,9 +1121,14 @@ public class ExchangeSession { public boolean equals(Object message) { return message instanceof Message && getImapUid() == ((Message) message).getImapUid(); } + + @Override + public int hashCode() { + return (int)(imapUid ^ (imapUid >>> 32)); + } } - public class MessageList extends ArrayList { + public static class MessageList extends ArrayList { final HashMap uidMessageMap = new HashMap(); @Override @@ -1423,7 +1428,7 @@ public class ExchangeSession { } - public class EventResult { + public static class EventResult { public int status; public String etag; } @@ -1461,7 +1466,7 @@ public class ExchangeSession { return icsBody.substring(startIndex, endIndex); } - class Participants { + static class Participants { String attendees; String organizer; } diff --git a/src/java/davmail/ldap/LdapConnection.java b/src/java/davmail/ldap/LdapConnection.java index fecda830..42895c70 100644 --- a/src/java/davmail/ldap/LdapConnection.java +++ b/src/java/davmail/ldap/LdapConnection.java @@ -849,7 +849,7 @@ public class LdapConnection extends AbstractConnection { os.flush(); } - class LdapFilter { + static class LdapFilter { final StringBuilder filterString = new StringBuilder(); int ldapFilterType = 0; boolean isFullSearch = true; @@ -907,7 +907,7 @@ public class LdapConnection extends AbstractConnection { } } - class SimpleFilter { + static class SimpleFilter { static final String STAR = "*"; final String value; final int operator;