Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Dec 11, 2023
1 parent 95527b1 commit 3945f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/xmlobjects/xml/TextContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ public void ifDoubleList(Consumer<List<Double>> action) {
}

public Integer getAsInteger() {
if (value instanceof Integer integer) {
return integer;
if (value instanceof Integer intValue) {
return intValue;
} else if (!isEmpty() && !trimmedContent().isEmpty()) {
try {
return setValue(Integer.parseInt(trimmedContent));
Expand Down

0 comments on commit 3945f51

Please sign in to comment.