diff options
author | Scott Kennedy <skennedy@google.com> | 2013-03-21 21:46:01 -0700 |
---|---|---|
committer | Scott Kennedy <skennedy@google.com> | 2013-03-21 21:59:58 -0700 |
commit | 9e2d407fdafeb874e640eb84017feaf784309075 (patch) | |
tree | 22fda8badc2cb3f83c40b07c19d0edae0498c5f1 /tests/src | |
parent | 6be55ef040cf910f78571dbe4df1551a0bf2661b (diff) | |
download | android_packages_apps_UnifiedEmail-9e2d407fdafeb874e640eb84017feaf784309075.tar.gz android_packages_apps_UnifiedEmail-9e2d407fdafeb874e640eb84017feaf784309075.tar.bz2 android_packages_apps_UnifiedEmail-9e2d407fdafeb874e640eb84017feaf784309075.zip |
Clean up a bunch of warnings
Change-Id: I5c75564eeb2df9ec76d682dbe5f4465ff2a1a5d4
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/mail/compose/ComposeActivityTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/mail/compose/ComposeActivityTest.java b/tests/src/com/android/mail/compose/ComposeActivityTest.java index afda91ff2..f39198ed2 100644 --- a/tests/src/com/android/mail/compose/ComposeActivityTest.java +++ b/tests/src/com/android/mail/compose/ComposeActivityTest.java @@ -63,8 +63,8 @@ public class ComposeActivityTest extends ActivityInstrumentationTestCase2<Compos foldersCursor.moveToFirst(); convUri = Uri.parse(foldersCursor .getString(UIProvider.FOLDER_CONVERSATION_LIST_URI_COLUMN)); + foldersCursor.close(); } - foldersCursor.close(); Cursor convCursor = mActivity.getContentResolver().query(convUri, UIProvider.CONVERSATION_PROJECTION, null, null, null); Uri messagesUri = null; @@ -72,8 +72,8 @@ public class ComposeActivityTest extends ActivityInstrumentationTestCase2<Compos convCursor.moveToFirst(); messagesUri = Uri.parse(convCursor .getString(UIProvider.CONVERSATION_MESSAGE_LIST_URI_COLUMN)); + convCursor.close(); } - convCursor.close(); Cursor msgCursor = mActivity.getContentResolver().query(messagesUri, UIProvider.MESSAGE_PROJECTION, null, null, null); if (msgCursor != null) { @@ -635,7 +635,7 @@ public class ComposeActivityTest extends ActivityInstrumentationTestCase2<Compos }); } - private String createAttachmentsJson() { + private static String createAttachmentsJson() { Attachment attachment1 = new Attachment(); attachment1.contentUri = Uri.parse("www.google.com"); attachment1.setContentType("img/jpeg"); |