From f467407857b06d6154ad496c3c55e97b40b17708 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 06:33:11 +0200 Subject: [PATCH] Store the name of a track in the attributes. --- .../java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java index 78dd4d2..9e721df 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java @@ -24,8 +24,6 @@ package net.pterodactylus.demoscenemusic.data; */ public abstract class AbstractTrack extends AbstractBase implements Track { - private String name; - private String style; public AbstractTrack(String id) { @@ -33,11 +31,11 @@ public abstract class AbstractTrack extends AbstractBase implements Track { } public String name() { - return name; + return value("name", String.class).get(); } public Track name(String name) { - this.name = name; + value("name", String.class).set(name); return this; } -- 2.7.4