From 5dd440d82878a60586b9035ccb86a6cb07f4d313 Mon Sep 17 00:00:00 2001 From: Claus Nagel Date: Tue, 2 Jul 2024 22:50:08 +0200 Subject: [PATCH] minor change --- .../org/citydb/model/appearance/TextureImageProperty.java | 4 ++-- .../src/main/java/org/citydb/model/common/PropertyMap.java | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java b/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java index b2f83189..76aacfe5 100644 --- a/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java +++ b/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java @@ -34,12 +34,12 @@ public class TextureImageProperty implements InlineOrByReferenceProperty elements) { } } + public boolean remove(T element) { + return elements.getOrDefault(element.getName().getNamespace(), Collections.emptyMap()) + .getOrDefault(element.getName().getLocalName(), Collections.emptyList()) + .remove(element); + } + public List remove(Name name) { return elements.getOrDefault(name.getNamespace(), Collections.emptyMap()) .remove(name.getLocalName());