Skip to content

Commit

Permalink
Simplify generics
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Jun 10, 2024
1 parent 40229a5 commit c63abd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public BodyXmlReader(
this.fileReader = fileReader;
}

public ReadResult readElements(Iterable<? extends XmlNode> nodes) {
public ReadResult readElements(Iterable<XmlNode> nodes) {
return new StatefulBodyXmlReader(
styles,
numbering,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private InternalResult<Optional<Style>> readRunStyle(XmlElementLike properties)
return readStyle(properties, "w:rStyle", "Run", styles::findCharacterStyleById);
}

ReadResult readElements(Iterable<? extends XmlNode> nodes) {
ReadResult readElements(Iterable<XmlNode> nodes) {
return ReadResult.flatMap(lazyFilter(nodes, XmlElement.class), this::readElement);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void contentOfDeletedParagraphIsPreprendedToNextParagraph() {
map(),
map()
);
List<XmlElement> bodyXml = list(
List<XmlNode> bodyXml = list(
element("w:p", list(
element("w:pPr", list(
element("w:pStyle", map("w:val", "Heading1")),
Expand Down

0 comments on commit c63abd5

Please sign in to comment.