Skip to content

Commit a836ecc

Browse files
author
Ravi Nadahar
committed
Replace deprecated method
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
1 parent 48e1442 commit a836ecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bundles/org.openhab.core.model.yaml/src/main/java/org/openhab/core/model/yaml/internal/YamlModelRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private boolean processModelContent(String modelName, Kind kind, JsonNode fileCo
252252

253253
List<String> newElementNames = new ArrayList<>();
254254
// get sub-elements
255-
Iterator<Map.Entry<String, JsonNode>> it = fileContent.fields();
255+
Iterator<Map.Entry<String, JsonNode>> it = fileContent.properties().iterator();
256256
while (it.hasNext()) {
257257
Map.Entry<String, JsonNode> element = it.next();
258258
String elementName = element.getKey();

0 commit comments

Comments
 (0)