@@ -193,7 +193,7 @@ public void onActivityResult(final int requestCode, final int resultCode,
193193 }
194194 }
195195
196- private void exportDatabase (final File folder ) {
196+ private void exportDatabase (@ NonNull final File folder ) {
197197 try {
198198 final SimpleDateFormat sdf = new SimpleDateFormat ("yyyyMMdd_HHmmss" , Locale .US );
199199 final String path = folder .getAbsolutePath () + "/NewPipeData-"
@@ -214,7 +214,7 @@ private void exportDatabase(final File folder) {
214214 }
215215 }
216216
217- private void importDatabase (final File file ) {
217+ private void importDatabase (@ NonNull final File file ) {
218218 final String filePath = file .getAbsolutePath ();
219219
220220 // check if file is supported
@@ -263,7 +263,7 @@ private void importDatabase(final File file) {
263263 *
264264 * @param file The file of the created backup
265265 */
266- private void finishImport (final File file ) {
266+ private void finishImport (@ NonNull final File file ) {
267267 if (file .getParentFile () != null ) {
268268 //immediately because app is about to exit
269269 setImportExportDataPath (file .getParentFile (), true );
@@ -274,7 +274,7 @@ private void finishImport(final File file) {
274274 }
275275
276276 @ SuppressLint ("ApplySharedPref" )
277- private void setImportExportDataPath (final File file , final boolean immediately ) {
277+ private void setImportExportDataPath (@ NonNull final File file , final boolean immediately ) {
278278 final String directoryPath ;
279279 if (file .isDirectory ()) {
280280 directoryPath = file .getAbsolutePath ();
0 commit comments