Remove some warnings
Change-Id: Ifc855a6c8623bd980807064477635c19b8ed81e0
This commit is contained in:
parent
431811986f
commit
26f741fbaf
|
@ -31,11 +31,13 @@ public class MessageMoveRequest extends Request {
|
||||||
|
|
||||||
// MessageMoveRequests are unique by their message id (i.e. it's meaningless to have two
|
// MessageMoveRequests are unique by their message id (i.e. it's meaningless to have two
|
||||||
// separate message moves queued at the same time)
|
// separate message moves queued at the same time)
|
||||||
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (!(o instanceof MessageMoveRequest)) return false;
|
if (!(o instanceof MessageMoveRequest)) return false;
|
||||||
return ((MessageMoveRequest)o).mMessageId == mMessageId;
|
return ((MessageMoveRequest)o).mMessageId == mMessageId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return (int)mMessageId;
|
return (int)mMessageId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,11 +40,13 @@ public class PartRequest extends Request {
|
||||||
|
|
||||||
// PartRequests are unique by their attachment id (i.e. multiple attachments might be queued
|
// PartRequests are unique by their attachment id (i.e. multiple attachments might be queued
|
||||||
// for a particular message, but any individual attachment can only be loaded once)
|
// for a particular message, but any individual attachment can only be loaded once)
|
||||||
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (!(o instanceof PartRequest)) return false;
|
if (!(o instanceof PartRequest)) return false;
|
||||||
return ((PartRequest)o).mAttachment.mId == mAttachment.mId;
|
return ((PartRequest)o).mAttachment.mId == mAttachment.mId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return (int)mAttachment.mId;
|
return (int)mAttachment.mId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,8 @@ public abstract class Request {
|
||||||
|
|
||||||
// Subclasses of Request may have different semantics regarding equality; therefore,
|
// Subclasses of Request may have different semantics regarding equality; therefore,
|
||||||
// we force them to implement the equals method
|
// we force them to implement the equals method
|
||||||
|
@Override
|
||||||
public abstract boolean equals(Object o);
|
public abstract boolean equals(Object o);
|
||||||
|
@Override
|
||||||
public abstract int hashCode();
|
public abstract int hashCode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,6 @@ import android.os.Handler;
|
||||||
import android.os.PowerManager;
|
import android.os.PowerManager;
|
||||||
import android.os.PowerManager.WakeLock;
|
import android.os.PowerManager.WakeLock;
|
||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
import android.os.RemoteException;
|
|
||||||
import android.provider.CalendarContract;
|
import android.provider.CalendarContract;
|
||||||
import android.provider.CalendarContract.Calendars;
|
import android.provider.CalendarContract.Calendars;
|
||||||
import android.provider.CalendarContract.Events;
|
import android.provider.CalendarContract.Events;
|
||||||
|
@ -59,7 +58,6 @@ import com.android.emailcommon.provider.Policy;
|
||||||
import com.android.emailcommon.provider.ProviderUnavailableException;
|
import com.android.emailcommon.provider.ProviderUnavailableException;
|
||||||
import com.android.emailcommon.service.AccountServiceProxy;
|
import com.android.emailcommon.service.AccountServiceProxy;
|
||||||
import com.android.emailcommon.service.EmailServiceProxy;
|
import com.android.emailcommon.service.EmailServiceProxy;
|
||||||
import com.android.emailcommon.service.EmailServiceStatus;
|
|
||||||
import com.android.emailcommon.service.IEmailServiceCallback.Stub;
|
import com.android.emailcommon.service.IEmailServiceCallback.Stub;
|
||||||
import com.android.emailcommon.service.PolicyServiceProxy;
|
import com.android.emailcommon.service.PolicyServiceProxy;
|
||||||
import com.android.emailcommon.utility.EmailClientConnectionManager;
|
import com.android.emailcommon.utility.EmailClientConnectionManager;
|
||||||
|
|
Loading…
Reference in New Issue