|
9 | 9 | import static seedu.address.logic.parser.CliSyntax.PREFIX_START_TIME;
|
10 | 10 | import static seedu.address.logic.parser.CliSyntax.PREFIX_VENUE;
|
11 | 11 |
|
12 |
| -import java.util.Collection; |
13 |
| -import java.util.Collections; |
14 |
| -import java.util.Optional; |
15 |
| -import java.util.Set; |
16 |
| - |
17 | 12 | import seedu.address.commons.core.index.Index;
|
18 | 13 | import seedu.address.logic.commands.EditECommand;
|
19 | 14 | import seedu.address.logic.parser.exceptions.ParseException;
|
@@ -50,19 +45,19 @@ public EditECommand parse(String args) throws ParseException {
|
50 | 45 | editEventDescriptor.setName(ParserUtilForEvent.parseName(argMultimap.getValue(PREFIX_NAME).get()));
|
51 | 46 | }
|
52 | 47 | if (argMultimap.getValue(PREFIX_DESCRIPTION).isPresent()) {
|
53 |
| - editEventDescriptor.setDescription(ParserUtilForEvent.parseDescription(argMultimap. |
54 |
| - getValue(PREFIX_DESCRIPTION).get())); |
| 48 | + editEventDescriptor.setDescription(ParserUtilForEvent.parseDescription(argMultimap |
| 49 | + .getValue(PREFIX_DESCRIPTION).get())); |
55 | 50 | }
|
56 | 51 | if (argMultimap.getValue(PREFIX_VENUE).isPresent()) {
|
57 | 52 | editEventDescriptor.setVenue(ParserUtilForEvent.parseVenue(argMultimap.getValue(PREFIX_VENUE).get()));
|
58 | 53 | }
|
59 | 54 | if (argMultimap.getValue(PREFIX_START_TIME).isPresent()) {
|
60 |
| - editEventDescriptor.setStartDateTime(ParserUtilForEvent.parseDateTime(argMultimap. |
61 |
| - getValue(PREFIX_START_TIME).get())); |
| 55 | + editEventDescriptor.setStartDateTime(ParserUtilForEvent.parseDateTime(argMultimap |
| 56 | + .getValue(PREFIX_START_TIME).get())); |
62 | 57 | }
|
63 | 58 | if (argMultimap.getValue(PREFIX_END_TIME).isPresent()) {
|
64 |
| - editEventDescriptor.setEndDateTime(ParserUtilForEvent.parseDateTime(argMultimap. |
65 |
| - getValue(PREFIX_END_TIME).get())); |
| 59 | + editEventDescriptor.setEndDateTime(ParserUtilForEvent.parseDateTime(argMultimap |
| 60 | + .getValue(PREFIX_END_TIME).get())); |
66 | 61 | }
|
67 | 62 | if (argMultimap.getValue(PREFIX_LABEL).isPresent()) {
|
68 | 63 | editEventDescriptor.setLabel(ParserUtilForEvent.parseLabel(argMultimap.getValue(PREFIX_LABEL).get()));
|
|
0 commit comments