-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Adi Kesava] iP #11
base: master
Are you sure you want to change the base?
[Adi Kesava] iP #11
Conversation
Slight modification
src/Duke/ui/Ui.java
Outdated
/** | ||
* Prints "Your task?" | ||
* | ||
* @return the line read in after trimming trailing and leading spaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you write the java documentation, it makes us understand your code clear. 👍
src/Duke/task/Todo.java
Outdated
|
||
@Override | ||
public void setDescription(String description) { | ||
super.setDescription(description); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this method be Override?😃
src/Duke/parser/Parser.java
Outdated
// return new Deadline(description, deadline); | ||
return new Deadline(description, deadline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall code quality is good, comment is clear, but some place can be delete.
Re-modified Constants to adhere to coding standards. Adjusted Packages
Quality is there
src/main/java/ui/Parser.java
Outdated
if (description.isEmpty() || description.equals("")) { | ||
System.out.println("Empty description for DEADLINE"); | ||
throw new DukeException("Empty description for DEADLINE"); | ||
} | ||
String deadline = fullCommand.substring(idxOfBy, fullCommand.length()).substring("/by".length()).trim(); | ||
if (deadline.isEmpty() || deadline.equals("")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never know isEmpty command. I always checked if the string size =0. Thanks for the tips!
src/main/java/ui/Parser.java
Outdated
int idxOfBy = fullCommand.indexOf("/at"); | ||
if (idxOfBy < 0) { | ||
System.out.println("Event does not contain /at"); | ||
throw new DukeException("Event does not contain /at"); | ||
} | ||
|
||
String description = fullCommand.substring(0, idxOfBy).substring("event".length()).trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can break into 2 lines for more readable code?
A-text-ui-test
branch-Level-6
Finished save function
Finished javadoc comments for this iteration
Added in find command and function
branch-Level-9
� Conflicts: � data/tasks.txt
Added in some JUnit tests
branch-A-JUnit
# Conflicts: # docs/README.md
Also added checkstyle
Also added checkstyle
Branch a gradle
Fixed all CheckStyle errors
Something is still breaking...
Okay it seems to be working now...
Branch level 10
Branch a ci
Added in relevant icon and Ui.png
Amended the README.md
Renamed Ui.png
Added in Tagging for Tasks.
Increase Code quality
[Adi Kesava] iP / TIC4001_Level-3 iP - PR