diff options
author | Jonas Smedegaard <dr@jones.dk> | 2025-04-28 17:38:37 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-28 17:40:15 +0200 |
commit | 770caee1a9d829b96e2a5cf571e4aac162d7fe74 (patch) | |
tree | c0cc6118a58ca2520012b85b57697b45c4a220e3 /src/com.example.portfolio2 | |
parent | 53c13beb456dd5ba599ef4dbaadfa94f91b20979 (diff) |
tidy: avoid redundant cast to String
Diffstat (limited to 'src/com.example.portfolio2')
-rw-r--r-- | src/com.example.portfolio2/com/example/portfolio2/Controller.java | 4 |
1 files changed, 2 insertions, 2 deletions
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. |