mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 10:59:03 +00:00
Fix PMD violations #327
This commit is contained in:
@@ -29,7 +29,7 @@ public class Queen implements Royalty {
|
||||
|
||||
@Override
|
||||
public void changeMood() {
|
||||
if (complimentReceived && isFlirty && isDrunk) {
|
||||
if (complimentReceived && isFlirty && isDrunk && !isHungry) {
|
||||
isHappy = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user