From ab2b08f58300d67ee8ece2f06f27bef5d14a469b Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Tue, 30 Apr 2019 15:46:15 +0200 Subject: [PATCH] Fixed attachment timeline test. --- .../spine/AttachmentTimelineTests.java | 12 ++++++++++-- .../spine/attachments/Attachment.java | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/spine-libgdx/spine-libgdx-tests/src/com/esotericsoftware/spine/AttachmentTimelineTests.java b/spine-libgdx/spine-libgdx-tests/src/com/esotericsoftware/spine/AttachmentTimelineTests.java index c9d835844..2ac55c3f7 100644 --- a/spine-libgdx/spine-libgdx-tests/src/com/esotericsoftware/spine/AttachmentTimelineTests.java +++ b/spine-libgdx/spine-libgdx-tests/src/com/esotericsoftware/spine/AttachmentTimelineTests.java @@ -50,8 +50,16 @@ public class AttachmentTimelineTests { skeletonData.getSlots().add(new SlotData(0, "slot", boneData)); - Attachment attachment1 = new Attachment("attachment1") {}; - Attachment attachment2 = new Attachment("attachment2") {}; + Attachment attachment1 = new Attachment("attachment1") { + public Attachment copy () { + return null; + } + }; + Attachment attachment2 = new Attachment("attachment2") { + public Attachment copy () { + return null; + } + }; Skin skin = new Skin("skin"); skin.setAttachment(0, "attachment1", attachment1); diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Attachment.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Attachment.java index 6890ebf31..f26511877 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Attachment.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Attachment.java @@ -49,5 +49,5 @@ abstract public class Attachment { } /** Returns a copy of the attachment. **/ - public abstract Attachment copy (); + abstract public Attachment copy (); }