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; }