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:
@@ -126,7 +126,7 @@ public class ChatView extends BContainer
|
|||||||
|
|
||||||
if (msg instanceof UserMessage) {
|
if (msg instanceof UserMessage) {
|
||||||
UserMessage umsg = (UserMessage) msg;
|
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.speaker + " whispers] ", ColorRGBA.green);
|
||||||
append(umsg.message + "\n");
|
append(umsg.message + "\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user