RequireNonNullした

This commit is contained in:
ろむねこ 2023-12-12 10:22:28 +09:00
parent 29641c370e
commit 8f7a420ae3
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -3,6 +3,7 @@ package one.nem.lacerta.data.impl;
import android.content.Context;
import java.nio.file.Path;
import java.util.Objects;
import javax.inject.Inject;
@ -20,11 +21,11 @@ public class CommonsImpl implements Commons{
public Path getExternalFilesDirPath(String type) {
return applicationContext.getExternalFilesDir(type).toPath();
return Objects.requireNonNull(applicationContext.getExternalFilesDir(type)).toPath();
}
public Path getExternalFilesDirPath() {
return applicationContext.getExternalFilesDir(null).toPath();
return Objects.requireNonNull(applicationContext.getExternalFilesDir(null)).toPath();
}
}