mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
RequireNonNullした
This commit is contained in:
parent
29641c370e
commit
8f7a420ae3
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user