mirror of https://github.com/apache/maven.git
Compare Xpp3Dom instances not objects that are different types and are being compared by Object.equals i.e. instance identity
This commit is contained in:
parent
4b6eaadd28
commit
e2b7ea2a96
|
@ -63,9 +63,10 @@ class Xpp3DomNodeIterator
|
|||
this.children = this.node.getChildren();
|
||||
if ( startWith != null )
|
||||
{
|
||||
Xpp3Dom startWithNode = (Xpp3Dom) startWith.getNode();
|
||||
for ( ; filteredIndex < children.length; filteredIndex++ )
|
||||
{
|
||||
if ( startWith.equals( children[filteredIndex] ) )
|
||||
if ( startWithNode.equals( children[filteredIndex] ) )
|
||||
{
|
||||
filteredIndex++;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue