Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
  • Loading branch information
holgerfriedrich committed Jan 3, 2025
1 parent 189a07d commit 38c57ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected String parseOptionsAndParameters(String[] parameterValues) {
}
if (getLocale) {
String l = parameterValue;
locale = new Locale(l);
locale = Locale.of(l);
getLocale = false;
}
if (getId && getLocale) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ public EList<Widget> collectWidgets(String sitemapName, @Nullable String pageId)
LinkedList<Widget> childrenQueue = new LinkedList<>(widgets);
while (!childrenQueue.isEmpty()) {
Widget child = childrenQueue.removeFirst();
if (child instanceof LinkableWidget) {
List<Widget> subWidgets = itemUIRegistry.getChildren((LinkableWidget) child);
if (child instanceof LinkableWidget widget) {
List<Widget> subWidgets = itemUIRegistry.getChildren(widget);
widgets.addAll(subWidgets);
childrenQueue.addAll(subWidgets);
}
Expand Down

0 comments on commit 38c57ca

Please sign in to comment.