Skip to content

Commit

Permalink
Fix boolean sounding name
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradLew committed Nov 5, 2022
1 parent 9792cf6 commit 66d2ff1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/seedu/address/model/issue/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public boolean isEmpty() {
}
}

private boolean completed;
private boolean isCompleted;

/**
* Constructs an issue completion Status.
*
* @param completionStatus true/false to indicate if issue is completed.
* @param isCompleted true/false to indicate if issue is completed.
*/
public Status(boolean completionStatus) {
this.completed = completionStatus;
public Status(boolean isCompleted) {
this.isCompleted = isCompleted;
}

/**
Expand All @@ -47,11 +47,11 @@ public static boolean isValidStatus(String status) {
}

public boolean getStatus() {
return this.completed;
return this.isCompleted;
}

public void setStatus(boolean completionStatus) {
this.completed = completionStatus;
public void setStatus(boolean isCompleted) {
this.isCompleted = isCompleted;
}

public boolean isEmpty() {
Expand All @@ -62,7 +62,7 @@ public boolean isEmpty() {
* Returns the ui representation of the status
*/
public String uiRepresentation() {
if (this.completed == true) {
if (this.isCompleted == true) {
return "Status: Completed";
} else {
return "Status: Incomplete";
Expand All @@ -74,7 +74,7 @@ public String uiRepresentation() {
* @return String representing whether the issue is completed.
*/
public String getCompletionStatus() {
if (this.completed) {
if (this.isCompleted) {
return "Completed";
} else {
return "Incomplete";
Expand All @@ -83,7 +83,7 @@ public String getCompletionStatus() {

@Override
public String toString() {
return String.valueOf(this.completed);
return String.valueOf(this.isCompleted);
}

/**
Expand All @@ -101,7 +101,7 @@ public boolean equals(Object other) {
}

Status otherStatus = (Status) other;
return otherStatus.completed == this.completed;
return otherStatus.isCompleted == this.isCompleted;

}
}

0 comments on commit 66d2ff1

Please sign in to comment.