Fixed #1769 Missing some body trait variable declaration

This commit is contained in:
Jindra Petřík
2022-11-23 23:42:45 +01:00
parent 3ff9a042c8
commit 25bc05012f
23 changed files with 407 additions and 114 deletions

View File

@@ -50,7 +50,7 @@ public class RecompileTest extends FileTestBase {
public void testAS3InstructionParsing(String filePath) {
try {
Configuration._debugCopy.set(false);
try (FileInputStream fis = new FileInputStream(filePath)) {
try ( FileInputStream fis = new FileInputStream(filePath)) {
SWF swf = new SWF(new BufferedInputStream(fis), false);
for (ABCContainerTag abcTag : swf.getAbcList()) {
ABC abc = abcTag.getABC();
@@ -69,7 +69,7 @@ public class RecompileTest extends FileTestBase {
@Test(dataProvider = "provideFiles")
public void testRecompile(String filePath) {
try {
try (FileInputStream fis = new FileInputStream(filePath)) {
try ( FileInputStream fis = new FileInputStream(filePath)) {
Configuration._debugCopy.set(true);
SWF swf = new SWF(new BufferedInputStream(fis), false);
swf.saveTo(new ByteArrayOutputStream());