diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index 60b7a9dda83f..254d53746448 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -5,7 +5,6 @@ import static seedu.address.logic.parser.CliSyntax.PREFIX_BIRTHDAY; import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; import static seedu.address.logic.parser.CliSyntax.PREFIX_GENDER; -import static seedu.address.logic.parser.CliSyntax.PREFIX_ID; import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; diff --git a/src/main/java/seedu/address/logic/commands/ImportVolunteerCsvCommand.java b/src/main/java/seedu/address/logic/commands/ImportVolunteerCsvCommand.java index 47d27836c526..967e3e3c8f9a 100644 --- a/src/main/java/seedu/address/logic/commands/ImportVolunteerCsvCommand.java +++ b/src/main/java/seedu/address/logic/commands/ImportVolunteerCsvCommand.java @@ -109,7 +109,8 @@ public CommandResult execute(Model model, CommandHistory history) throws Command argMultimap.getValue(PREFIX_ADDRESS).get()); Set tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG)); - Volunteer volunteer = new Volunteer(name, volunteerId, gender, birthday, phone, email, address, tagList); + Volunteer volunteer = new Volunteer(name, volunteerId, gender, birthday, phone, email, + address, tagList); if (!model.hasVolunteer(volunteer)) { model.addVolunteer(volunteer); diff --git a/src/main/java/seedu/address/model/volunteer/VolunteerId.java b/src/main/java/seedu/address/model/volunteer/VolunteerId.java index b51fd0324069..b1929e798d2b 100644 --- a/src/main/java/seedu/address/model/volunteer/VolunteerId.java +++ b/src/main/java/seedu/address/model/volunteer/VolunteerId.java @@ -11,8 +11,8 @@ */ public class VolunteerId { public static final String MESSAGE_ID_CONSTRAINTS = - "NRIC should only start with letters S, T, F or G, followed by 7 digits, ending with an alphabet," + - "and it should not be blank"; + "NRIC should only start with letters S, T, F or G, followed by 7 digits, ending with an alphabet," + + "and it should not be blank"; public static final String ID_VALIDATION_REGEX = "(?i)^[STFG]\\d{7}[A-Z]$(?-i)"; public final String id; diff --git a/src/main/java/seedu/address/storage/XmlAdaptedVolunteer.java b/src/main/java/seedu/address/storage/XmlAdaptedVolunteer.java index bfaba5b98035..18405e04c521 100644 --- a/src/main/java/seedu/address/storage/XmlAdaptedVolunteer.java +++ b/src/main/java/seedu/address/storage/XmlAdaptedVolunteer.java @@ -55,8 +55,8 @@ public XmlAdaptedVolunteer() { /** * Constructs an {@code XmlAdaptedVolunteer} with the given volunteer details. */ - public XmlAdaptedVolunteer(String name, String volunteerId, String gender, String birthday, String phone, String email, - String address, List tagged) { + public XmlAdaptedVolunteer(String name, String volunteerId, String gender, String birthday, + String phone, String email, String address, List tagged) { this.name = name; this.volunteerId = volunteerId; this.gender = gender;