任务5:消除魔法字符串
...
if (
item.name !== "Aged Brie" &&
item.name !== "Backstage passes to a TAFKAL80ETC concert"
) {
if (item.quality > 0) { ... }
} else {
if (item.quality < 50) {
item.quality = item.quality + 1;
if (item.name === "Backstage passes to a TAFKAL80ETC concert") { ... }
}
}
...你的任务
git checkout task-5-magic-strings
./gradlew clean build思考
Last updated