Skip to content

Commit

Permalink
Fixed Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
afiqlattif committed Nov 10, 2018
1 parent 7399f82 commit 566414e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public CommandResult execute(Model model, CommandHistory history) throws Command
argMultimap.getValue(PREFIX_ADDRESS).get());
Set<Tag> 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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/model/volunteer/VolunteerId.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/storage/XmlAdaptedVolunteer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<XmlAdaptedTag> tagged) {
public XmlAdaptedVolunteer(String name, String volunteerId, String gender, String birthday,
String phone, String email, String address, List<XmlAdaptedTag> tagged) {
this.name = name;
this.volunteerId = volunteerId;
this.gender = gender;
Expand Down

0 comments on commit 566414e

Please sign in to comment.