Skip to content

Commit

Permalink
JENA-1484: Correcting behavior in ApplyElementTransformVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Feb 10, 2018
1 parent 161c03e commit c706ea4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public void visit(ElementBind el) {

@Override
public void visit(ElementData el) {
transform.transform(el) ;
push(el) ;
Element el2 = transform.transform(el) ;
push(el2) ;
}

@Override
Expand All @@ -115,15 +115,15 @@ public void visit(ElementOptional el) {
@Override
public void visit(ElementGroup el) {
ElementGroup newElt = new ElementGroup() ;
boolean b = transformFromTo(el.getElements(), newElt.getElements()) ;
transformFromTo(el.getElements(), newElt.getElements()) ;
Element el2 = transform.transform(el, newElt.getElements()) ;
push(el2) ;
}

@Override
public void visit(ElementUnion el) {
ElementUnion newElt = new ElementUnion() ;
boolean b = transformFromTo(el.getElements(), newElt.getElements()) ;
transformFromTo(el.getElements(), newElt.getElements()) ;
Element el2 = transform.transform(el, newElt.getElements()) ;
push(el2) ;
}
Expand Down

0 comments on commit c706ea4

Please sign in to comment.