mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 18:16:16 +00:00
Fixing squid:S1698 - Objects should be compared with equals() and squid:HiddenFieldCheck - Local variables should not shadow class fields
This commit is contained in:
1 parent
3d8c64d76d
commit
191078735f
5 files changed
+9
-9
No files matched your search
@@ -19,7 +19,7 @@ public class PartyImpl implements Party {
|
||||
@Override
|
||||
public void act(PartyMember actor, Action action) {
|
||||
for (PartyMember member : members) {
|
||||
if (member != actor) {
|
||||
if (!member.equals(actor)) {
|
||||
member.partyAction(action);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user