From 947ae452b7b1e893c8cf36fce15e089fd7396203 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Mon, 28 Apr 2025 22:02:11 +0200
Subject: define class HelloApplication as final to ensure reliable
 initialization

---
 .../com/example/portfolio2/HelloApplication.java                    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/com.example.portfolio2/com/example/portfolio2/HelloApplication.java b/src/com.example.portfolio2/com/example/portfolio2/HelloApplication.java
index 8602701..e79dbda 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/HelloApplication.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/HelloApplication.java
@@ -17,8 +17,10 @@ import javafx.stage.Stage;
 import java.io.IOException;
 import java.util.List;
 
-/// Bachelorizer - bachelor programme registrar
-public class HelloApplication extends Application {
+/// Bachelorizer - JavaFX Window view
+// Class is final to forbid subclassing,
+// because object is passed to controller during instantiation
+public final class HelloApplication extends Application {
 
 	/// Default constructor
 	// (declared explicitly only to silence javadoc)
-- 
cgit v1.2.3