Skip to content

Commit 376de68

Browse files
committed
Checkstyle
1 parent 5b72b5f commit 376de68

27 files changed

+508
-513
lines changed

data/tasks.ser

-770 Bytes
Binary file not shown.

src/main/java/duke/DialogBox.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package duke;
22

3+
import java.io.IOException;
4+
import java.util.Collections;
5+
36
import javafx.collections.FXCollections;
47
import javafx.collections.ObservableList;
58
import javafx.fxml.FXML;
@@ -12,9 +15,6 @@
1215
import javafx.scene.layout.HBox;
1316
import javafx.scene.shape.Circle;
1417

15-
import java.io.IOException;
16-
import java.util.Collections;
17-
1818
/**
1919
* An example of a custom control using FXML.
2020
* This control represents a dialog box consisting of an ImageView to represent the speaker's face and a label
@@ -68,4 +68,4 @@ public static DialogBox getDukeDialog(Image img, String text, boolean isError) {
6868
db.flip();
6969
return db;
7070
}
71-
}
71+
}

src/main/java/duke/Duke.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public Duke() {
3333
*/
3434
public Duke(String filePath) {
3535
ui = new Ui();
36-
// ui.showStartUp();
3736
storage = new Storage(filePath);
3837
try {
3938
tasks = storage.load();

src/main/java/duke/Launcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ public class Launcher {
99
public static void main(String[] args) {
1010
Application.launch(Main.class, args);
1111
}
12-
}
12+
}

src/main/java/duke/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package duke;
22

3+
import java.io.IOException;
4+
35
import javafx.application.Application;
46
import javafx.fxml.FXMLLoader;
57
import javafx.scene.Scene;
68
import javafx.scene.layout.AnchorPane;
79
import javafx.stage.Stage;
810

9-
import java.io.IOException;
10-
1111
/**
1212
* A GUI for Duke using FXML.
1313
*/
@@ -33,4 +33,4 @@ public void start(Stage stage) {
3333
e.printStackTrace();
3434
}
3535
}
36-
}
36+
}

src/main/java/duke/MainWindow.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public class MainWindow extends AnchorPane {
3030
private final Image userImage = new Image(this.getClass().getResourceAsStream("/images/Catto.png"));
3131
private final Image dukeImage = new Image(this.getClass().getResourceAsStream("/images/Borzoi.png"));
3232

33+
/**
34+
* Initialises the MainWindow.
35+
*/
3336
@FXML
3437
public void initialize() {
3538
scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());
@@ -58,4 +61,4 @@ private void handleUserInput() {
5861
}
5962
userInput.clear();
6063
}
61-
}
64+
}

0 commit comments

Comments
 (0)