From 965a95a81a5b1f11390eef43be353a2d80a56c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Tue, 20 Oct 2015 23:14:49 +0200 Subject: [PATCH] initializers fix --- .../decompiler/flash/abc/types/traits/TraitSlotConst.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java index d49bd2f5a..59f1c78fa 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java @@ -114,10 +114,8 @@ public class TraitSlotConst extends Trait implements TraitWithSlot { } assignedValue.toString(writer, LocalData.create(abc.constants, new HashMap<>(), fullyQualifiedNames)); - if (parent instanceof TraitClass) { - writer.endMethod(); - writer.endTrait(); - } + writer.endMethod(); + writer.endTrait(); return; }