Use equals() to assuage code analysis tools that don't know that we assign

localType in the local VM and are careful to use the exact same instance.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@149 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2007-02-06 06:05:27 +00:00
parent 7a9b36f33e
commit aa9f74eed8
@@ -126,7 +126,7 @@ public class ChatView extends BContainer
if (msg instanceof UserMessage) {
UserMessage umsg = (UserMessage) msg;
if (umsg.localtype == ChatCodes.USER_CHAT_TYPE) {
if (ChatCodes.USER_CHAT_TYPE.equals(umsg.localtype)) {
append("[" + umsg.speaker + " whispers] ", ColorRGBA.green);
append(umsg.message + "\n");
} else {