mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
rename
This commit is contained in:
parent
48b98d08c0
commit
da6f6ffd5b
@ -11,7 +11,7 @@ class GildedRose {
|
||||
public void updateQuality() {
|
||||
for (Item item : items) {
|
||||
|
||||
if (item.isAgedBride()) {
|
||||
if (item.isAgedBrie()) {
|
||||
item.increaseQualityByOne();
|
||||
|
||||
item.decreaseSellInEachDay();
|
||||
|
||||
@ -21,7 +21,7 @@ public class Item {
|
||||
return name.equals(BACKSTAGE_PASSES);
|
||||
}
|
||||
|
||||
public boolean isAgedBride() {
|
||||
public boolean isAgedBrie() {
|
||||
return name.equals(AGED_BRIE);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user