From 354008ba4035d245b39a13281d4b69b738fee8a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 22 Nov 2014 12:06:03 +0100 Subject: [PATCH] =?utf8?q?Store=20ID=20as=20string,=20don=E2=80=99t=20forc?= =?utf8?q?e-convert=20to=20UUID.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java index 4e6f6ba..9dcd7d0 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/PostImpl.java @@ -17,8 +17,6 @@ package net.pterodactylus.sone.data.impl; -import java.util.UUID; - import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.database.SoneProvider; @@ -37,7 +35,7 @@ public class PostImpl implements Post { private final SoneProvider soneProvider; /** The GUID of the post. */ - private final UUID id; + private final String id; /** The ID of the owning Sone. */ private final String soneId; @@ -72,7 +70,7 @@ public class PostImpl implements Post { */ public PostImpl(SoneProvider soneProvider, String id, String soneId, String recipientId, long time, String text) { this.soneProvider = soneProvider; - this.id = UUID.fromString(id); + this.id = id; this.soneId = soneId; this.recipientId = recipientId; this.time = time; @@ -88,7 +86,7 @@ public class PostImpl implements Post { */ @Override public String getId() { - return id.toString(); + return id; } @Override -- 2.7.4