From: David ‘Bombe’ Roden Date: Sat, 30 Oct 2010 00:17:47 +0000 (+0200) Subject: Store ID as string. X-Git-Tag: 0.2-RC1~79^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0d4c0d1807ed83cbed7fd11fde34944be2864908;p=Sone.git Store ID as string. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 129293c..5613828 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -24,7 +24,6 @@ import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Set; -import java.util.UUID; import java.util.logging.Level; import java.util.logging.Logger; @@ -45,8 +44,8 @@ public class Sone { /** The logger. */ private static final Logger logger = Logging.getLogger(Sone.class); - /** A GUID for this Sone. */ - private final UUID id; + /** The ID of this Sone. */ + private final String id; /** The name of this Sone. */ private volatile String name; @@ -92,7 +91,7 @@ public class Sone { * The ID of this Sone */ public Sone(String id) { - this.id = UUID.fromString(id); + this.id = id; } // @@ -105,7 +104,7 @@ public class Sone { * @return The ID of this Sone */ public String getId() { - return id.toString(); + return id; } /**