You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/12 13:47:44 UTC

(commons-jxpath) 05/27: Checkstyle

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jxpath.git

commit a3f488830b126451f7eec70db8c74a056d1a490a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 09:41:17 2024 -0400

    Checkstyle
---
 .../java/org/apache/commons/jxpath/ri/axes/AttributeContext.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/jxpath/ri/axes/AttributeContext.java b/src/main/java/org/apache/commons/jxpath/ri/axes/AttributeContext.java
index db742ed..be08c0e 100644
--- a/src/main/java/org/apache/commons/jxpath/ri/axes/AttributeContext.java
+++ b/src/main/java/org/apache/commons/jxpath/ri/axes/AttributeContext.java
@@ -80,16 +80,15 @@ public class AttributeContext extends EvalContext {
             QName name;
             if (nodeTest instanceof NodeNameTest) {
                 name = ((NodeNameTest) nodeTest).getNodeName();
-            } else if (nodeTest instanceof NodeTypeTest
-                    && ((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE) {
+            }
+            else if (nodeTest instanceof NodeTypeTest && ((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE) {
                 name = WILDCARD;
             }
             else {
                 iterator = null;
                 return false;
             }
-            iterator = parentContext.getCurrentNodePointer().attributeIterator(
-                    name);
+            iterator = parentContext.getCurrentNodePointer().attributeIterator(name);
         }
         if (iterator == null) {
             return false;