checkstyle fix

This commit is contained in:
Jindra Petřík
2023-11-17 19:31:36 +01:00
parent 7fd930489e
commit cd45c637f5
9 changed files with 12 additions and 12 deletions

View File

@@ -89,7 +89,7 @@ public class BinaryDataExporter {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + ext));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();

View File

@@ -94,7 +94,7 @@ public class Font4Exporter {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + ext));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();

View File

@@ -109,7 +109,7 @@ public class FontExporter {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + ext));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();

View File

@@ -184,7 +184,7 @@ public class FrameExporter {
boolean usesTransparency,
Color backgroundColor,
FrameExportSettings settings
) {
) {
this.tim = tim;
this.fframes = fframes;
this.evl = evl;

View File

@@ -156,7 +156,7 @@ public class ImageExporter {
File classAlphaPngFile = new File(outdir + File.separator + Helper.makeFileName(className + ".alpha.png"));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
if (alphaPngFile.exists()) {
Files.copy(alphaPngFile.toPath(), classAlphaPngFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
}

View File

@@ -231,19 +231,19 @@ public class MorphShapeExporter {
File classFileEnd = new File(outdir + File.separator + Helper.makeFileName(className + ".end" + settings.getFileExtension()));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
if (fileStart.exists()) {
new RetryTask(() -> {
Files.copy(fileStart.toPath(), classFileStart.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
}
if (fileEnd.exists()) {
new RetryTask(() -> {
Files.copy(fileEnd.toPath(), classFileEnd.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
}
}
file.delete();

View File

@@ -100,7 +100,7 @@ public class MovieExporter {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + ".flv"));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();

View File

@@ -171,7 +171,7 @@ public class ShapeExporter {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + settings.getFileExtension()));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();

View File

@@ -117,13 +117,13 @@ public class SoundExporter {
}
}, handler).run();
Set<String> classNames = (st instanceof CharacterTag) ? ((CharacterTag)st).getClassNames() : new HashSet<>();
Set<String> classNames = (st instanceof CharacterTag) ? ((CharacterTag) st).getClassNames() : new HashSet<>();
if (Configuration.as3ExportNamesUseClassNamesOnly.get() && !classNames.isEmpty()) {
for (String className : classNames) {
File classFile = new File(outdir + File.separator + Helper.makeFileName(className + ext));
new RetryTask(() -> {
Files.copy(file.toPath(), classFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
},handler).run();
}, handler).run();
ret.add(classFile);
}
file.delete();