Skip to content

Commit

Permalink
Attempt to fix gradle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletBlanks committed Oct 19, 2023
1 parent 48d7a2b commit 770cbd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 7 additions & 5 deletions src/main/java/seedu/address/logic/commands/SetCommand.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package seedu.address.logic.commands;

import java.util.List;
import static java.util.Objects.requireNonNull;

import seedu.address.commons.core.index.Index;
import seedu.address.commons.util.ToStringBuilder;
import seedu.address.logic.Messages;
Expand All @@ -8,10 +11,6 @@
import seedu.address.model.person.Person;
import seedu.address.model.person.StatusTypes;

import java.util.List;

import static java.util.Objects.requireNonNull;

/**
* Sets the status of a person in the address book.
*/
Expand All @@ -21,7 +20,10 @@ public class SetCommand extends Command {

public static final String COMMAND_WORD = "set";

public static final String MESSAGE_USAGE = COMMAND_WORD + ": Sets the status of a person. " + "Parameters: " + "[" + COMMAND_WORD + " <USERID> <STATUS>]...\n" + "Example: " + COMMAND_WORD + " 5 Interviewed";
public static final String MESSAGE_USAGE = COMMAND_WORD
+ ": Sets the status of a person. " + "Parameters: "
+ "[" + COMMAND_WORD + " <USERID> <STATUS>]...\n" + "Example: "
+ COMMAND_WORD + " 5 Interviewed";

public static final String MESSAGE_SUCCESS = "Status set for: %1$s";

Expand Down
4 changes: 1 addition & 3 deletions src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ public static StatusTypes parseStatusType(String statusType) throws ParseExcepti
return StatusTypes.REJECTED;
case "preliminary":
return StatusTypes.PRELIMINARY;
case "default":
default:
throw new ParseException("e");
}
return StatusTypes.PRELIMINARY;

}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/person/StatusTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public String toString() {
* @param input The string status to be checked for validity.
* @return {@code true} if the status is valid, {@code false} otherwise.
*/
public static boolean isValidStatusType(String input){
public static boolean isValidStatusType(String input) {
return input.equals("interviewed") || input.equals("preliminary")
|| input.equals("rejected")
|| input.equals("offered");
Expand Down

0 comments on commit 770cbd3

Please sign in to comment.