From aea518fbd496c41fc9de8c0383c0f6d183ccb3a3 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Wed, 5 Jun 2024 13:44:39 +0200 Subject: [PATCH] Revert Feature.properties() NonNull --- .../src/main/java/org/maplibre/geojson/Feature.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services-geojson/src/main/java/org/maplibre/geojson/Feature.java b/services-geojson/src/main/java/org/maplibre/geojson/Feature.java index 09dbc522..dfc535e4 100644 --- a/services-geojson/src/main/java/org/maplibre/geojson/Feature.java +++ b/services-geojson/src/main/java/org/maplibre/geojson/Feature.java @@ -258,11 +258,8 @@ public Geometry geometry() { * @return a {@link JsonObject} which holds this features current properties * @since 1.0.0 */ - @NonNull + @Nullable public JsonObject properties() { - if (properties == null) { - throw new IllegalStateException("Properties should not be null"); - } return properties; }