From 1e98aa576d202b93784e7843ec5458832e713977 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 1 Nov 2010 20:23:14 +0100 Subject: [PATCH] Return the enumeration value itself. --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index 5b787a9..e02396a 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -76,7 +76,7 @@ public class SoneAccessor extends ReflectionAccessor { } else if (member.equals("modified")) { return sone.getModificationCounter() > 0; } else if (member.equals("status")) { - return core.getSoneStatus(sone).toString(); + return core.getSoneStatus(sone); } else if (member.equals("unknown")) { return core.getSoneStatus(sone) == SoneStatus.unknown; } else if (member.equals("idle")) { -- 2.7.4