[jinja] Deprecations (#20862)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2026-06-03 21:40:22 +02:00
committed by GitHub
parent 7e55132100
commit 4f5828b88e
@@ -15,7 +15,6 @@ package org.openhab.transform.jinja.internal;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@@ -95,9 +94,7 @@ public class JinjaTransformationService implements TransformationService {
return node.decimalValue();
case OBJECT: {
Map<String, @Nullable Object> result = new HashMap<>();
Iterator<Entry<String, JsonNode>> it = node.fields();
while (it.hasNext()) {
Entry<String, JsonNode> field = it.next();
for (Entry<String, JsonNode> field : node.properties()) {
result.put(field.getKey(), toObject(field.getValue()));
}
return result;