From c993a6b4fa6c58c56e3d0b0e91ea553cfaeb76c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 19 Apr 2025 22:54:38 +0200 Subject: [PATCH] Checkstyle fix --- .../abc/avm2/parser/script/AVM2SourceGenerator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java index 7adba9732..33ce23b87 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AVM2SourceGenerator.java @@ -873,18 +873,18 @@ public class AVM2SourceGenerator implements SourceGenerator { MethodBody initBody = null; if (!isInterface) { initBody = abcIndex.getSelectedAbc().findBody(init); - + int len = 0; for (AVM2Instruction ins : initcode) { len += ins.getBytesLength(); } - + initBody.getCode().code.addAll(iinit == null ? 0 : 2, initcode); //after getlocal0,pushscope - for (ABCException ex:initBody.exceptions) { + for (ABCException ex : initBody.exceptions) { ex.start += len; ex.end += len; - ex.target += len; - } + ex.target += len; + } } cinitBody.markOffsets(); cinitBody.autoFillStats(abcIndex.getSelectedAbc(), initScope + (implementsStr.isEmpty() ? 0 : 1), true);