diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-09 06:21:50 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-09 06:25:53 -0600 |
commit | e663aebb561a931160e89b4ecfa2fde2504477b1 (patch) | |
tree | e95bf562c47a58713b0cab2f7f45984679b86047 /app/src/main/java | |
parent | 9411bdc525fff171eaf262e2972687fba46daf73 (diff) |
TunnelListFragment: Remove useless keyword
final doesn't do anything in try-with-resources (it's always final).
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> 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); } |