From 953ef57f68abdd9dabb2231f150db6c5837a4d8b Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 27 May 2015 12:18:49 +0100 Subject: Switching to use try-with-resources The Closeables.closeQuietly(Closeable) method is no longer present in v18. This change replaces usages with the try-with-resource pattern. This is part of the work to upgrade Guava to version 18. BUG: 19672715 Change-Id: Ice213c8250253acf87f386a1b9c9fc0f159cd7e0 --- tests/src/com/android/dialer/CallDetailActivityTest.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/src/com/android/dialer/CallDetailActivityTest.java b/tests/src/com/android/dialer/CallDetailActivityTest.java index f9f0a5846..163fa1574 100644 --- a/tests/src/com/android/dialer/CallDetailActivityTest.java +++ b/tests/src/com/android/dialer/CallDetailActivityTest.java @@ -39,7 +39,6 @@ import com.android.dialer.util.FakeAsyncTaskExecutor; import com.android.contacts.common.test.IntegrationTestUtils; import com.android.dialer.util.LocaleTestUtils; import com.android.internal.view.menu.ContextMenuBuilder; -import com.google.common.io.Closeables; import java.io.IOException; import java.io.InputStream; @@ -262,15 +261,9 @@ public class CallDetailActivityTest extends ActivityInstrumentationTestCase2