Return the enumeration value itself.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 1 Nov 2010 19:23:14 +0000 (20:23 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 1 Nov 2010 19:23:14 +0000 (20:23 +0100)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java

index 5b787a9..e02396a 100644 (file)
@@ -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")) {