From 907a9e58d132ce8a2115dac5487b4cdaa7b1f9ad Mon Sep 17 00:00:00 2001 From: xczheng Date: Thu, 17 Oct 2024 23:29:21 +0800 Subject: [PATCH 1/2] Fix a minor bug --- src/main/java/seedu/address/logic/parser/ParserUtil.java | 3 ++- src/main/java/seedu/address/storage/JsonAdaptedGame.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/parser/ParserUtil.java b/src/main/java/seedu/address/logic/parser/ParserUtil.java index 4d341a3c7fe..928f16c7bb8 100644 --- a/src/main/java/seedu/address/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/address/logic/parser/ParserUtil.java @@ -8,6 +8,7 @@ import java.util.Map; import java.util.Set; +import javax.annotation.processing.RoundEnvironment; import seedu.address.commons.core.index.Index; import seedu.address.commons.util.StringUtil; import seedu.address.logic.parser.exceptions.ParseException; @@ -140,7 +141,7 @@ public static Game parseGame(String game) throws ParseException { if (!Game.isValidGameName(trimmedGame)) { throw new ParseException(Game.MESSAGE_CONSTRAINTS); } - return new Game(trimmedGame); + return new Game(trimmedGame, new Username("tbc"), new SkillLevel("tbc"), new Role("tbc")); } /** diff --git a/src/main/java/seedu/address/storage/JsonAdaptedGame.java b/src/main/java/seedu/address/storage/JsonAdaptedGame.java index e93ed632df7..432fd577fdf 100644 --- a/src/main/java/seedu/address/storage/JsonAdaptedGame.java +++ b/src/main/java/seedu/address/storage/JsonAdaptedGame.java @@ -9,7 +9,7 @@ import seedu.address.model.game.SkillLevel; import seedu.address.model.game.Username; -/** +/**1 * Jackson-friendly version of {@link Game}. */ class JsonAdaptedGame { From 8f8b88a949b7a0f88f4ce80949a6f04b0812589f Mon Sep 17 00:00:00 2001 From: xczheng Date: Thu, 17 Oct 2024 23:33:32 +0800 Subject: [PATCH 2/2] Fix CI issues --- src/main/java/seedu/address/logic/parser/ParserUtil.java | 1 - src/main/java/seedu/address/storage/JsonAdaptedGame.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/parser/ParserUtil.java b/src/main/java/seedu/address/logic/parser/ParserUtil.java index 928f16c7bb8..cceaa0db58e 100644 --- a/src/main/java/seedu/address/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/address/logic/parser/ParserUtil.java @@ -8,7 +8,6 @@ import java.util.Map; import java.util.Set; -import javax.annotation.processing.RoundEnvironment; import seedu.address.commons.core.index.Index; import seedu.address.commons.util.StringUtil; import seedu.address.logic.parser.exceptions.ParseException; diff --git a/src/main/java/seedu/address/storage/JsonAdaptedGame.java b/src/main/java/seedu/address/storage/JsonAdaptedGame.java index 432fd577fdf..e93ed632df7 100644 --- a/src/main/java/seedu/address/storage/JsonAdaptedGame.java +++ b/src/main/java/seedu/address/storage/JsonAdaptedGame.java @@ -9,7 +9,7 @@ import seedu.address.model.game.SkillLevel; import seedu.address.model.game.Username; -/**1 +/** * Jackson-friendly version of {@link Game}. */ class JsonAdaptedGame {