Skip to content

Commit

Permalink
Merge pull request #5410 from eclipse-ee4j/mojarra_issue_5408_micro_o…
Browse files Browse the repository at this point in the history
…ptimization

Micro optimization to clarify intent of viewMap.clear() in setViewRoot()
  • Loading branch information
arjantijms committed Mar 4, 2024
2 parents d4f985d + 2ec61a1 commit 427b255
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -424,7 +424,7 @@ public void setViewRoot(UIViewRoot root) {
if (viewRoot != null && !viewRoot.equals(root)) {
Map<String, Object> viewMap = viewRoot.getViewMap(false);
if (viewMap != null) {
viewRoot.getViewMap().clear();
viewMap.clear();
}
RequestStateManager.clearAttributesOnChangeOfView(this);
}
Expand Down

0 comments on commit 427b255

Please sign in to comment.