Skip to content

Commit 652af45

Browse files
committed
fix
1 parent 7db2b73 commit 652af45

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/htmlunit/html/impl/SimpleRange.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ else if (endContainer_.getChildNodes().getLength() > endOffset_) {
253253
else {
254254
end = endContainer_.getNextSibling();
255255
}
256+
256257
boolean foundStart = false;
257258
boolean started = false;
258259
final Iterator<DomNode> i = ancestor.getDescendants().iterator();
@@ -549,10 +550,10 @@ private static int getMaxOffset(final DomNode node) {
549550
/**
550551
* @return a list with all nodes contained in this range
551552
*/
552-
public List containedNodes() {
553+
public List<DomNode> containedNodes() {
553554
final DomNode ancestor = getCommonAncestorContainer();
554555
if (ancestor == null) {
555-
return Collections.EMPTY_LIST;
556+
return Collections.emptyList();
556557
}
557558

558559
final DomNode start;

0 commit comments

Comments
 (0)