Skip to content

Commit faa5878

Browse files
committed
Updated formatting for checkstyle
1 parent e0f78f1 commit faa5878

File tree

9 files changed

+16
-13
lines changed

9 files changed

+16
-13
lines changed

gradle/wrapper/gradle-wrapper.jar

88 Bytes
Binary file not shown.

src/main/java/seedu/address/logic/LogicManager.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public GuiSettings getGuiSettings() {
9191
return model.getGuiSettings();
9292
}
9393

94-
public String getName(){ return model.getName(); }
94+
public String getName() {
95+
return model.getName();
96+
}
9597

9698
@Override
9799
public void setGuiSettings(GuiSettings guiSettings) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ViewCommand extends Command {
1818
@Override
1919
public CommandResult execute(Model model, CommandHistory history) {
2020
requireNonNull(model);
21-
int size = model.getSize();
21+
int size = model.getSize();
2222
return new CommandResult(MESSAGE_SUCCESS + size);
2323
}
2424
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void setUserPrefs(ReadOnlyUserPrefs userPrefs) {
5757
}
5858

5959
@Override
60-
public int getSize(){
60+
public int getSize() {
6161
return versionedFoodDiary.getSize();
6262
}
6363

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ public Path getFoodDiaryFilePath() {
5353
return foodDiaryFilePath;
5454
}
5555

56-
public String getName(){ return name; }
56+
public String getName() {
57+
return name;
58+
}
5759

5860
public void setFoodDiaryFilePath(Path foodDiaryFilePath) {
5961
requireNonNull(foodDiaryFilePath);
6062
this.foodDiaryFilePath = foodDiaryFilePath;
6163
}
6264

63-
public void setName(String name){
65+
public void setName(String name) {
6466
this.name = name;
6567
}
6668

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public VersionedFoodDiary(ReadOnlyFoodDiary initialState) {
1919
currentStatePointer = 0;
2020
}
2121

22-
public int getSize(){
22+
public int getSize() {
2323
return foodDiaryStateList.get(currentStatePointer).getRestaurantList().size();
2424
}
2525
/**

src/main/java/seedu/address/ui/MainWindow.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ void fillInnerParts() {
121121
resultDisplay = new ResultDisplay();
122122
resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());
123123

124-
StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getFoodDiaryFilePath(), logic.getFoodDiary(), logic.getName());
124+
StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getFoodDiaryFilePath(),
125+
logic.getFoodDiary(), logic.getName());
125126
statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());
126127

127128
CommandBox commandBox = new CommandBox(this::executeCommand, logic.getHistory());

src/main/java/seedu/address/ui/StatusBarFooter.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.time.Clock;
66
import java.util.Date;
77

8-
import javafx.application.Platform;
98
import javafx.fxml.FXML;
109
import javafx.scene.control.Label;
1110
import javafx.scene.layout.Region;
@@ -43,7 +42,7 @@ public StatusBarFooter(Path saveLocation, ReadOnlyFoodDiary foodDiary, String na
4342
super(FXML);
4443
foodDiary.addListener(observable -> updateSyncStatus());
4544
syncStatus.setText(SYNC_STATUS_INITIAL);
46-
profileName.setText(PROFILE+name);
45+
profileName.setText(PROFILE + name);
4746
saveLocationStatus.setText(Paths.get(".").resolve(saveLocation).toString());
4847
}
4948

src/test/java/seedu/address/logic/commands/AddCommandTest.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,15 @@ public void setUserPrefs(ReadOnlyUserPrefs userPrefs) {
9797
throw new AssertionError("This method should not be called.");
9898
}
9999

100-
public String getName(){
100+
public String getName() {
101101
throw new AssertionError("This method should not be called.");
102102
}
103103

104-
public void setName(String name){
104+
public void setName(String name) {
105105
throw new AssertionError("This method should not be called.");
106106
}
107107

108-
public int
109-
getSize(){
108+
public int getSize() {
110109
throw new AssertionError("This method should not be called.");
111110
}
112111
@Override

0 commit comments

Comments
 (0)