From 662bc3894b5b1faea8cd91ee7bdcd393f8517a91 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 9 Jan 2018 06:21:50 -0600 Subject: TunnelListFragment: Remove useless keyword final doesn't do anything in try-with-resources (it's always final). Signed-off-by: Samuel Holland --- .../main/java/com/wireguard/android/fragment/TunnelListFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index 79bf5d02..f03aeb9d 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -70,7 +70,7 @@ public class TunnelListFragment extends BaseFragment { final CompletionStage nameStage = asyncWorker.supplyAsync(() -> { final String[] columns = {OpenableColumns.DISPLAY_NAME}; String name = null; - try (final Cursor cursor = contentResolver.query(uri, columns, null, null, null)) { + try (Cursor cursor = contentResolver.query(uri, columns, null, null, null)) { if (cursor != null && cursor.moveToFirst() && !cursor.isNull(0)) name = cursor.getString(0); } -- cgit v1.2.3