From e4daebcf1cff3074a1571263350d4a5b134242c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 27 Nov 2014 06:49:32 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20force=20ID=20to=20be=20a=20UUID.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/sone/database/memory/MemoryPost.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java b/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java index 180cf6c..f5c4597 100644 --- a/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java +++ b/src/main/java/net/pterodactylus/sone/database/memory/MemoryPost.java @@ -17,8 +17,6 @@ package net.pterodactylus.sone.database.memory; -import java.util.UUID; - import net.pterodactylus.sone.data.Post; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.database.SoneProvider; @@ -39,8 +37,8 @@ class MemoryPost implements Post { /** The Sone provider. */ private final SoneProvider soneProvider; - /** 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; @@ -75,7 +73,7 @@ class MemoryPost implements Post { public MemoryPost(MemoryDatabase postDatabase, SoneProvider soneProvider, String id, String soneId, String recipientId, long time, String text) { this.postDatabase = postDatabase; this.soneProvider = soneProvider; - this.id = UUID.fromString(id); + this.id = id; this.soneId = soneId; this.recipientId = recipientId; this.time = time; @@ -91,7 +89,7 @@ class MemoryPost implements Post { */ @Override public String getId() { - return id.toString(); + return id; } @Override -- 2.7.4