aboutsummaryrefslogtreecommitdiff
path: root/src/com.example.portfolio2
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-30 18:21:47 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-30 18:22:57 +0200
commitfd9a8fc42ec3328f8f5bce7cda08faceff94fc0c (patch)
tree0505da8aaece8af8ccc5b554756bf968d07fb326 /src/com.example.portfolio2
parent9537bb268911153d335eed865a48a8f8d30c42b1 (diff)
mark class parameters as final
Diffstat (limited to 'src/com.example.portfolio2')
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/Controller.java4
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/GUI.java2
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/UI.java2
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/Window.java2
4 files changed, 6 insertions, 4 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/Controller.java b/src/com.example.portfolio2/com/example/portfolio2/Controller.java
index 0df3cd4..92028bc 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/Controller.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/Controller.java
@@ -32,7 +32,9 @@ class Controller {
/// @param store Storage model
/// @param ui UI model
/// @param view Application view
- Controller(final Database store, UI ui, final Window view) {
+ Controller(
+ final Database store, final UI ui, final Window view
+ ) {
this.store = store;
this.ui = ui;
this.view = view;
diff --git a/src/com.example.portfolio2/com/example/portfolio2/GUI.java b/src/com.example.portfolio2/com/example/portfolio2/GUI.java
index 40bd9d1..95df60c 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/GUI.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/GUI.java
@@ -35,7 +35,7 @@ public class GUI extends UI {
///
/// @param label text label
/// @param column column position
- private Section(String label, int column) {
+ private Section(final String label, final int column) {
this.label = label;
this.column = column;
}
diff --git a/src/com.example.portfolio2/com/example/portfolio2/UI.java b/src/com.example.portfolio2/com/example/portfolio2/UI.java
index 6f2c1ec..8a71e43 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/UI.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/UI.java
@@ -31,7 +31,7 @@ public abstract class UI {
/// instantiation
///
/// @param label text label
- private Section(String label) {
+ private Section(final String label) {
this.label = label;
}
}
diff --git a/src/com.example.portfolio2/com/example/portfolio2/Window.java b/src/com.example.portfolio2/com/example/portfolio2/Window.java
index 774b012..ba4ee86 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/Window.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/Window.java
@@ -193,7 +193,7 @@ public final class Window extends Application {
/// column of activities
///
/// @param section structural section for column
- public ActivityColumn(GUI.Section section) {
+ public ActivityColumn(final GUI.Section section) {
this(
section,
new Label(section.label),