1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Fixes from audit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@485 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-03-27 13:00:47 +00:00
parent 6ff5ea6c27
commit 9349641165
2 changed files with 10 additions and 5 deletions

View File

@ -1121,9 +1121,14 @@ public class ExchangeSession {
public boolean equals(Object message) { public boolean equals(Object message) {
return message instanceof Message && getImapUid() == ((Message) message).getImapUid(); return message instanceof Message && getImapUid() == ((Message) message).getImapUid();
} }
@Override
public int hashCode() {
return (int)(imapUid ^ (imapUid >>> 32));
}
} }
public class MessageList extends ArrayList<Message> { public static class MessageList extends ArrayList<Message> {
final HashMap<Long, Message> uidMessageMap = new HashMap<Long, Message>(); final HashMap<Long, Message> uidMessageMap = new HashMap<Long, Message>();
@Override @Override
@ -1423,7 +1428,7 @@ public class ExchangeSession {
} }
public class EventResult { public static class EventResult {
public int status; public int status;
public String etag; public String etag;
} }
@ -1461,7 +1466,7 @@ public class ExchangeSession {
return icsBody.substring(startIndex, endIndex); return icsBody.substring(startIndex, endIndex);
} }
class Participants { static class Participants {
String attendees; String attendees;
String organizer; String organizer;
} }

View File

@ -849,7 +849,7 @@ public class LdapConnection extends AbstractConnection {
os.flush(); os.flush();
} }
class LdapFilter { static class LdapFilter {
final StringBuilder filterString = new StringBuilder(); final StringBuilder filterString = new StringBuilder();
int ldapFilterType = 0; int ldapFilterType = 0;
boolean isFullSearch = true; boolean isFullSearch = true;
@ -907,7 +907,7 @@ public class LdapConnection extends AbstractConnection {
} }
} }
class SimpleFilter { static class SimpleFilter {
static final String STAR = "*"; static final String STAR = "*";
final String value; final String value;
final int operator; final int operator;