зеркало из https://github.com/mozilla/gecko-dev.git
Bug 720325: add serialVersionUID for serializable WebSMS exception classes, r=blassey
This commit is contained in:
Родитель
443d96209d
Коммит
1d965e37f1
|
@ -550,8 +550,6 @@ public class GeckoSmsManager
|
|||
}
|
||||
|
||||
public int saveSentMessage(String aRecipient, String aBody, long aDate) {
|
||||
class IdTooHighException extends Exception { }
|
||||
|
||||
try {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put("address", aRecipient);
|
||||
|
@ -593,11 +591,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class NotFoundException extends Exception { }
|
||||
class UnmatchingIdException extends Exception { }
|
||||
class TooManyResultsException extends Exception { }
|
||||
class InvalidTypeException extends Exception { }
|
||||
|
||||
Cursor cursor = null;
|
||||
|
||||
try {
|
||||
|
@ -680,8 +673,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class TooManyResultsException extends Exception { }
|
||||
|
||||
try {
|
||||
ContentResolver cr = GeckoApp.mAppContext.getContentResolver();
|
||||
Uri message = ContentUris.withAppendedId(kSmsContentUri, mMessageId);
|
||||
|
@ -733,9 +724,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class UnexpectedDeliveryStateException extends Exception { };
|
||||
class InvalidTypeException extends Exception { }
|
||||
|
||||
Cursor cursor = null;
|
||||
boolean closeCursor = true;
|
||||
|
||||
|
@ -846,8 +834,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class UnexpectedDeliveryStateException extends Exception { };
|
||||
|
||||
try {
|
||||
Cursor cursor = MessagesListManager.getInstance().get(mListId);
|
||||
|
||||
|
@ -903,4 +889,28 @@ public class GeckoSmsManager
|
|||
SmsIOThread.getInstance().interrupt();
|
||||
MessagesListManager.getInstance().clear();
|
||||
}
|
||||
|
||||
class IdTooHighException extends Exception {
|
||||
private static final long serialVersionUID = 395697882128640L;
|
||||
}
|
||||
|
||||
class InvalidTypeException extends Exception {
|
||||
private static final long serialVersionUID = 23359904803795434L;
|
||||
}
|
||||
|
||||
class NotFoundException extends Exception {
|
||||
private static final long serialVersionUID = 266226999371957426L;
|
||||
}
|
||||
|
||||
class TooManyResultsException extends Exception {
|
||||
private static final long serialVersionUID = 48899777673841920L;
|
||||
}
|
||||
|
||||
class UnexpectedDeliveryStateException extends Exception {
|
||||
private static final long serialVersionUID = 5044567998961920L;
|
||||
}
|
||||
|
||||
class UnmatchingIdException extends Exception {
|
||||
private static final long serialVersionUID = 1935649715512128L;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -543,8 +543,6 @@ public class GeckoSmsManager
|
|||
}
|
||||
|
||||
public int saveSentMessage(String aRecipient, String aBody, long aDate) {
|
||||
class IdTooHighException extends Exception { }
|
||||
|
||||
try {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put("address", aRecipient);
|
||||
|
@ -586,11 +584,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class NotFoundException extends Exception { }
|
||||
class UnmatchingIdException extends Exception { }
|
||||
class TooManyResultsException extends Exception { }
|
||||
class InvalidTypeException extends Exception { }
|
||||
|
||||
Cursor cursor = null;
|
||||
|
||||
try {
|
||||
|
@ -673,8 +666,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class TooManyResultsException extends Exception { }
|
||||
|
||||
try {
|
||||
ContentResolver cr = GeckoApp.mAppContext.getContentResolver();
|
||||
Uri message = ContentUris.withAppendedId(kSmsContentUri, mMessageId);
|
||||
|
@ -726,9 +717,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class UnexpectedDeliveryStateException extends Exception { };
|
||||
class InvalidTypeException extends Exception { }
|
||||
|
||||
Cursor cursor = null;
|
||||
boolean closeCursor = true;
|
||||
|
||||
|
@ -839,8 +827,6 @@ public class GeckoSmsManager
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
class UnexpectedDeliveryStateException extends Exception { };
|
||||
|
||||
try {
|
||||
Cursor cursor = MessagesListManager.getInstance().get(mListId);
|
||||
|
||||
|
@ -896,4 +882,28 @@ public class GeckoSmsManager
|
|||
SmsIOThread.getInstance().interrupt();
|
||||
MessagesListManager.getInstance().clear();
|
||||
}
|
||||
|
||||
class IdTooHighException extends Exception {
|
||||
private static final long serialVersionUID = 29935575131092050L;
|
||||
}
|
||||
|
||||
class InvalidTypeException extends Exception {
|
||||
private static final long serialVersionUID = 47436856832535912L;
|
||||
}
|
||||
|
||||
class NotFoundException extends Exception {
|
||||
private static final long serialVersionUID = 1940676816633984L;
|
||||
}
|
||||
|
||||
class TooManyResultsException extends Exception {
|
||||
private static final long serialVersionUID = 51883196784325305L;
|
||||
}
|
||||
|
||||
class UnexpectedDeliveryStateException extends Exception {
|
||||
private static final long serialVersionUID = 494122763684005716L;
|
||||
}
|
||||
|
||||
class UnmatchingIdException extends Exception {
|
||||
private static final long serialVersionUID = 158467542575633280L;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче