Skip to content

Commit

Permalink
fix deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Aug 13, 2024
1 parent 59befdc commit 4aa019f
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 @@ -13,12 +13,12 @@ public List<UIComponent> resolve(UIComponent component, List<UIComponent> parent
throw new FacesException("The @child search expression required a numerical parameter! " + originalExpression);
}
try {
int index = new Integer(parameters[0]).intValue();
int index = Integer.parseInt(parameters[0]);
List<UIComponent> result = new ArrayList<UIComponent>();
for (UIComponent parent : parentComponents) {
result.add(parent.getChildren().get(index));
}
if (result.size() > 0) {
if (!result.isEmpty()) {
return result;
}
throw new FacesException("Error processing the @child search expression. " + originalExpression);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/render/Responsive.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private static int sizeToInt(String size) {
size=size.replace("column", "");
size=size.trim();
}
return new Integer(size).intValue();
return Integer.parseInt(size);
}

/**
Expand Down

0 comments on commit 4aa019f

Please sign in to comment.