From ff098a93945e03d679ddab44fee8fa68db51460b Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 23 Feb 2006 18:52:59 +0000 Subject: [PATCH] Dooh, unStudlyName() returns an uppercase string (in spite of what it said in its method documentation). And I was doing the wrong thing with event names which were already unstudlied (but are also uppercase). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3883 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/admin/server/ConfigRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/admin/server/ConfigRegistry.java b/src/java/com/threerings/admin/server/ConfigRegistry.java index 86d56c94d..b24a36803 100644 --- a/src/java/com/threerings/admin/server/ConfigRegistry.java +++ b/src/java/com/threerings/admin/server/ConfigRegistry.java @@ -175,7 +175,7 @@ public abstract class ConfigRegistry public void attributeChanged (AttributeChangedEvent event) { // mirror this configuration update to the persistent config - String key = StringUtil.unStudlyName(event.getName()); + String key = event.getName().toLowerCase(); Object value = event.getValue(); if (value instanceof Boolean) { setValue(key, ((Boolean)value).booleanValue()); @@ -212,7 +212,7 @@ public abstract class ConfigRegistry * its corresponding value in the associated config repository. */ protected void initField (Field field) { - String key = StringUtil.unStudlyName(field.getName()); + String key = StringUtil.unStudlyName(field.getName()).toLowerCase(); Class type = field.getType(); try { @@ -294,7 +294,7 @@ public abstract class ConfigRegistry */ protected void serializeAttribute (String attributeName) { - String key = StringUtil.unStudlyName(attributeName); + String key = StringUtil.unStudlyName(attributeName).toLowerCase(); Object value; try { value = object.getAttribute(attributeName);