summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-09 06:21:50 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-09 06:25:53 -0600
commit662bc3894b5b1faea8cd91ee7bdcd393f8517a91 (patch)
treee95bf562c47a58713b0cab2f7f45984679b86047 /app/src/main/java
parent1451c4baf5a66c601b6fec937e2e9c229c5336bf (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.java2
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);
}