From c5bc67d66a386aefb610de567018dd97750c6d28 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 15 Aug 2008 23:55:46 +0000 Subject: [PATCH] Planting a flag on this landmine, change to equals() if desired git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5327 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/util/MessageBundle.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/com/threerings/util/MessageBundle.java b/src/java/com/threerings/util/MessageBundle.java index 8f8c30799..b50ff606d 100644 --- a/src/java/com/threerings/util/MessageBundle.java +++ b/src/java/com/threerings/util/MessageBundle.java @@ -298,6 +298,8 @@ public class MessageBundle String msg = getResourceString(key + suffix, false); if (msg == null) { + // Playing with fire: This only works because it's the same "" reference we return from getSuffix() + // Don't try this at home. Keep out of reach of children. If swallowed, consult StringUtil.isBlank() if (suffix != "") { // Try the original key msg = getResourceString(key, false);