hypervisorfdi commented on a change in pull request #887:
URL: https://github.com/apache/cxf/pull/887#discussion_r775178308



##########
File path: 
core/src/main/java/org/apache/cxf/staxutils/transform/InTransformReader.java
##########
@@ -262,12 +262,22 @@ private void handleDefaultMode(QName name, QName 
expected) {
 
     private void handleDeepDrop() throws XMLStreamException {
         final int depth = getDepth();
-        while (depth != getDepth() || super.next() != 
XMLStreamConstants.END_ELEMENT) {
-            // get to the matching end element event
+        int read = 0;
+        while (depth != getDepth() || hasNext()) {

Review comment:
       think you can drop `depth != depth()` condition along side depth 
declaration. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to