Fixing squid:S1698 - Objects should be compared with equals() and squid:HiddenFieldCheck - Local variables should not shadow class fields

This commit is contained in:
Kirill Vlasov
2015-12-22 15:10:09 +05:00
parent 3d8c64d76d
commit 191078735f
5 changed files with 9 additions and 9 deletions

View File

@ -23,7 +23,7 @@ public class Consumer {
Message msg;
try {
msg = queue.take();
if (msg == Message.POISON_PILL) {
if (Message.POISON_PILL.equals(msg)) {
System.out.println(String.format("Consumer %s receive request to terminate.", name));
break;
}