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>
This commit is contained in:
parent
1451c4baf5
commit
662bc3894b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user