Revert "新しいインスタンスを作成するメソッドを作った"

This reverts commit 943ca1daf5.
This commit is contained in:
r-ca 2024-01-09 15:10:27 +09:00
parent 1b676f8368
commit 27aa6a2f15
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -34,21 +34,13 @@ public class FileManagerImpl implements FileManager {
// Injection
private final LacertaLogger logger;
@AssistedInject
public FileManagerImpl(LacertaLogger logger, @Assisted Path rootDir) {
this.logger = logger;
this.rootDir = rootDir;
}
// for generate new instance
public FileManagerImpl(LacertaLogger logger, Path rootDir, Path path, boolean autoCreateParent, boolean disableRootDirCheck) {
this.logger = logger;
this.rootDir = rootDir;
this.path = path;
this.autoCreateParent = autoCreateParent;
this.disableRootDirCheck = disableRootDirCheck;
}
// Internal
private Path resolveStringPath(String path) throws IOException{
String[] pathArray = path.split("/");
@ -69,11 +61,6 @@ public class FileManagerImpl implements FileManager {
return resolvedPath;
}
private FileManager newInstance(Path rootDir, Path path, boolean autoCreateParent, boolean disableRootDirCheck) {
logger.debug("newInstance", "Generating new instance");
return new FileManagerImpl(this.logger, rootDir, path, autoCreateParent, disableRootDirCheck);
}
@Override
public File getFileRef() {
if (this.isExist()) {