From 770caee1a9d829b96e2a5cf571e4aac162d7fe74 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Mon, 28 Apr 2025 17:38:37 +0200
Subject: tidy: avoid redundant cast to String

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

(limited to 'src/com.example.portfolio2/com')

diff --git a/src/com.example.portfolio2/com/example/portfolio2/Controller.java b/src/com.example.portfolio2/com/example/portfolio2/Controller.java
index cf98c3c..ad81b5f 100644
--- a/src/com.example.portfolio2/com/example/portfolio2/Controller.java
+++ b/src/com.example.portfolio2/com/example/portfolio2/Controller.java
@@ -33,13 +33,13 @@ class Controller{
 		area.clear(); // Clear text area
 
 		// Fill activity box using model method
-		select.getItems().addAll(model.selectProgram((String) combo.getValue()));
+		select.getItems().addAll(model.selectProgram(combo.getValue()));
 	}
 
 	void onActivitySelected(ComboBox<String> combo, ComboBox<String> select, TextArea area) {
 
 		// Passes the value chosen in the box
-		addActivity((String) select.getValue(), area);
+		addActivity(select.getValue(), area);
 
 		// Updates the text area based on the category choice
 		// users can choose from the ComboBox, string (activity) and the area would update.
-- 
cgit v1.2.3