From 4e3b2c3e3a2cd6212357b0a5cf5ad3ba6705801d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 20 Oct 2013 00:52:48 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20store/parse=20post=20ID=20as=20U?= =?utf8?q?UID.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/data/impl/DefaultPost.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/data/impl/DefaultPost.java b/src/main/java/net/pterodactylus/sone/data/impl/DefaultPost.java index 1f9c62c..abef0c4 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/DefaultPost.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/DefaultPost.java @@ -20,7 +20,6 @@ package net.pterodactylus.sone.data.impl; import static com.google.common.collect.FluentIterable.from; import java.util.List; -import java.util.UUID; import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.PostReply; @@ -40,8 +39,8 @@ public class DefaultPost implements Post { private final Database database; - /** The GUID of the post. */ - private final UUID id; + /** The ID of the post. */ + private final String id; /** The ID of the owning Sone. */ private final String soneId; @@ -76,7 +75,7 @@ public class DefaultPost implements Post { */ public DefaultPost(Database database, String id, String soneId, String recipientId, long time, String text) { this.database = database; - this.id = UUID.fromString(id); + this.id = id; this.soneId = soneId; this.recipientId = recipientId; this.time = time; @@ -89,7 +88,7 @@ public class DefaultPost implements Post { @Override public String getId() { - return id.toString(); + return id; } @Override -- 2.7.4