mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 04:55:38 +00:00
some FindBugs refactorings (partially)
This commit is contained in:
@@ -101,7 +101,9 @@ public class ScriptPack {
|
||||
String packageName = getPathPackage();
|
||||
File outDir = new File(directory + File.separatorChar + makeDirPath(packageName));
|
||||
if (!outDir.exists()) {
|
||||
outDir.mkdirs();
|
||||
if (!outDir.mkdirs()) {
|
||||
throw new IOException("cannot create directory " + outDir);
|
||||
}
|
||||
}
|
||||
String fileName = outDir.toString() + File.separator + Helper.makeFileName(scriptName) + ".as";
|
||||
File file = new File(fileName);
|
||||
|
||||
Reference in New Issue
Block a user