Skip to content

Commit f573326

Browse files
committed
Revert the change of #5059 so we can improve it with #5625
1 parent 4902448 commit f573326

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

impl/src/main/java/jakarta/faces/component/ComponentStateHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ public void add(Serializable key, Object value) {
232232
}
233233

234234
private void initList(Serializable key) {
235+
if (component.initialStateMarked()) {
236+
deltaMap.computeIfAbsent(key, e -> new ArrayList<>(4));
237+
}
238+
235239
if (get(key) == null) {
236240
List<Object> items = new ArrayList<>(4);
237241
defaultMap.put(key, items);
238242
}
239-
240-
if (component.initialStateMarked()) {
241-
deltaMap.computeIfAbsent(key, e -> new ArrayList<>((List<Object>) get(key)));
242-
}
243243
}
244244

245245
/**

0 commit comments

Comments
 (0)