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:
Samuel Holland 2018-01-09 06:21:50 -06:00
parent 1451c4baf5
commit 662bc3894b

View File

@ -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);
}