From: David ‘Bombe’ Roden Date: Mon, 1 Nov 2010 19:23:14 +0000 (+0100) Subject: Return the enumeration value itself. X-Git-Tag: 0.2-RC1~77 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1e98aa576d202b93784e7843ec5458832e713977;p=Sone.git Return the enumeration value itself. --- 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")) {