Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
ad0c25f1
Commit
ad0c25f1
authored
Feb 18, 2026
by
Luna Riegel
Browse files
Refactor: Cleanup code
parent
a9b6756d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CityDoctorController.java
View file @
ad0c25f1
...
...
@@ -81,6 +81,7 @@ import javafx.scene.control.TreeView;
import
javafx.scene.paint.Color
;
import
javafx.stage.FileChooser
;
import
javafx.stage.FileChooser.ExtensionFilter
;
import
org.jspecify.annotations.NonNull
;
public
class
CityDoctorController
{
...
...
@@ -1604,12 +1605,11 @@ public class CityDoctorController {
return
model
;
}
public
CityObject
retrieveCityObject
(
GmlId
gmlId
)
{
public
@NonNull
CityObject
retrieveCityObject
(
GmlId
gmlId
)
{
try
{
return
model
.
getCityObject
(
gmlId
);
}
catch
(
IllegalArgumentException
e
){
logger
.
warn
(
e
.
getMessage
());
return
null
;
throw
new
NullPointerException
(
e
.
getMessage
());
}
}
...
...
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/MainWindow.java
View file @
ad0c25f1
...
...
@@ -37,6 +37,7 @@ import javafx.scene.transform.Rotate;
import
javafx.stage.Stage
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.jspecify.annotations.NonNull
;
import
javax.imageio.ImageIO
;
import
java.awt.image.BufferedImage
;
...
...
@@ -831,7 +832,7 @@ public class MainWindow extends Application {
node
.
getFeatureExportAction
(
this
);
}
public
CityObject
retrieveCityObject
(
GmlId
id
){
public
@NonNull
CityObject
retrieveCityObject
(
GmlId
id
){
return
controller
.
retrieveCityObject
(
id
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment