Skip to content

Commit 747cbf4

Browse files
Merge pull request #106 from AY2021S1-CS2103T-W17-1/branch-update-javadocs
Merge branch update javadocs
2 parents 97e419e + 48fd6e8 commit 747cbf4

24 files changed

Lines changed: 173 additions & 171 deletions

src/main/java/seedu/address/logic/commands/FindCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class FindCommand extends Command {
1717
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all bugs whose names contain any of "
1818
+ "the specified keywords (case-insensitive) and displays them as a list with index numbers.\n"
1919
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n"
20-
+ "Example: " + COMMAND_WORD + " alice bob charlie";
20+
+ "Example: " + COMMAND_WORD + " Incorrect display";
2121

2222
private final NameContainsKeywordsPredicate predicate;
2323

src/main/java/seedu/address/model/KanBugTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import seedu.address.model.bug.UniqueBugList;
1010

1111
/**
12-
* Wraps all data at the address-book level
12+
* Wraps all data at the kanbug-tracker level
1313
* Duplicates are not allowed (by .isSameBug comparison)
1414
*/
1515
public class KanBugTracker implements ReadOnlyKanBugTracker {

src/main/java/seedu/address/model/bug/Bug.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import seedu.address.model.tag.Tag;
1111

1212
/**
13-
* Represents a Bug in the description book.
13+
* Represents a Bug in the bug tracker.
1414
* Guarantees: details are present and not null, field values are validated, immutable.
1515
*/
1616
public class Bug {

src/main/java/seedu/address/storage/KanBugTrackerStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface KanBugTrackerStorage {
2020

2121
/**
2222
* Returns KanBugTracker data as a {@link ReadOnlyKanBugTracker}.
23-
* Returns {@code Optional.empty()} if storage file is not found.
23+
* Returns {@code Optional.empty()} if storage file is not found.
2424
* @throws DataConversionException if the data in storage is not in the expected format.
2525
* @throws IOException if there was any problem when reading from the storage.
2626
*/

src/main/java/seedu/address/storage/UserPrefsStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface UserPrefsStorage {
2020

2121
/**
2222
* Returns UserPrefs data from storage.
23-
* Returns {@code Optional.empty()} if storage file is not found.
23+
* Returns {@code Optional.empty()} if storage file is not found.
2424
* @throws DataConversionException if the data in storage is not in the expected format.
2525
* @throws IOException if there was any problem when reading from the storage.
2626
*/
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"bugs": [ {
33
"name": "Valid Bug",
4-
"email": "hans@example.com",
5-
"description": "4th street"
4+
"description": "Valid input"
65
}, {
7-
"name": "Bug With Invalid Email Field",
8-
"email": "hans@example!com",
9-
"description": "4th street"
6+
"name": "Bug With Invalid state field",
7+
"state": "Invalid state",
8+
"description": "Invalid input"
109
} ]
1110
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"bugs": [ {
33
"name": "Bug with invalid name field: Ha!ns Mu@ster",
4-
"phone": "9482424",
5-
"email": "hans@example.com",
6-
"description": "4th street"
4+
"state": "backlog",
5+
"description": "Invalid name field bug"
76
} ]
87
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"bugs": [ {
3-
"name": "Alice Pauline",
3+
"name": "Exit command hangs",
44
"state": "done",
5-
"description": "123, Jurong West Ave 6, #08-111",
6-
"tagged": [ "friends" ]
5+
"description": "Exit command did not work normally",
6+
"tagged": [ "Command" ]
77
}, {
8-
"name": "Alice Pauline",
8+
"name": "Exit command hangs",
99
"state": "done",
10-
"description": "4th street"
10+
"description": "Need to implement Exit command again"
1111
} ]
1212
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"bugs": [ {
3-
"name": "Hans Muster",
4-
"state": "invalid@email!3e",
5-
"description": "4th street"
3+
"name": "Ui display bug",
4+
"state": "invalid state",
5+
"description": "The window application overflowed"
66
} ]
77
}

src/test/java/seedu/address/logic/LogicManagerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import static seedu.address.logic.commands.CommandTestUtil.NAME_DESC_PARSER;
88
import static seedu.address.logic.commands.CommandTestUtil.STATE_DESC_PARSER;
99
import static seedu.address.testutil.Assert.assertThrows;
10-
import static seedu.address.testutil.TypicalBugs.AMY;
10+
import static seedu.address.testutil.TypicalBugs.BUGTEN;
1111

1212
import java.io.IOException;
1313
import java.nio.file.Path;
@@ -80,7 +80,7 @@ public void execute_storageThrowsIoException_throwsCommandException() {
8080
// Execute add command
8181
String addCommand = AddCommand.COMMAND_WORD + NAME_DESC_PARSER + STATE_DESC_PARSER
8282
+ DESCRIPTION_DESC_PARSER;
83-
Bug expectedBug = new BugBuilder(AMY).withTags().build();
83+
Bug expectedBug = new BugBuilder(BUGTEN).withTags().build();
8484
ModelManager expectedModel = new ModelManager();
8585
expectedModel.addBug(expectedBug);
8686
String expectedMessage = LogicManager.FILE_OPS_ERROR_MESSAGE + DUMMY_IO_EXCEPTION;

0 commit comments

Comments
 (0)