Skip to content

Conversation

Paritosh-Pranjal
Copy link

Paritosh

@@ -93,19 +155,20 @@ private void add(String commandLine) {
}

private void addProject(String name) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a POJO for project and use it here.

}

private void addTask(String project, String description) {
public void addTask(String project, String description) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use primitives in method parameters,make use of POJO.

@@ -114,7 +177,7 @@ private void uncheck(String idString) {
setDone(idString, false);
}

private void setDone(String idString, boolean done) {
public void setDone(String idString, boolean done) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use POJO, eliminate primitive obsession.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants