1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Annotate StoredFileHelper.createSAF() as NonNull

This commit is contained in:
TobiGr 2021-06-05 16:34:22 +02:00
parent 7e3b3453c0
commit f583dd47ac

View File

@ -354,7 +354,9 @@ public class StoredFileHelper implements Serializable {
} }
} }
private DocumentFile createSAF(@Nullable Context context, String mime, String filename) throws IOException { @NonNull
private DocumentFile createSAF(@Nullable Context context, String mime, String filename)
throws IOException {
DocumentFile res = StoredDirectoryHelper.findFileSAFHelper(context, docTree, filename); DocumentFile res = StoredDirectoryHelper.findFileSAFHelper(context, docTree, filename);
if (res != null && res.exists() && res.isDirectory()) { if (res != null && res.exists() && res.isDirectory()) {