mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
refactor: formatting
This commit is contained in:
parent
ab12c5c204
commit
8d3c6ebcee
@ -45,6 +45,7 @@ public class Item {
|
||||
quality--;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateBackstagePassItem() {
|
||||
if (quality < 50) {
|
||||
quality++;
|
||||
@ -64,6 +65,7 @@ public class Item {
|
||||
quality = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void updateAgedBrieItem() {
|
||||
if (quality < 50) {
|
||||
quality++;
|
||||
@ -76,8 +78,8 @@ public class Item {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.name + ", " + this.sellIn + ", " + this.quality;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user