This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jxpath.git
The following commit(s) were added to refs/heads/master by this push:
new 288f6090 Use String.isEmpty()
288f6090 is described below
commit 288f60909c4eec7fa7c19e5d41937cab2ea81736
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 26 10:19:05 2026 -0400
Use String.isEmpty()
---
src/main/java/org/apache/commons/jxpath/ri/model/NodePointer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/jxpath/ri/model/NodePointer.java
b/src/main/java/org/apache/commons/jxpath/ri/model/NodePointer.java
index 0d4aeddb..216de5db 100644
--- a/src/main/java/org/apache/commons/jxpath/ri/model/NodePointer.java
+++ b/src/main/java/org/apache/commons/jxpath/ri/model/NodePointer.java
@@ -101,7 +101,7 @@ public abstract class NodePointer implements Pointer {
* @param indent indentation level
*/
private static void printDeep(final NodePointer pointer, final String
indent) {
- if (indent.length() == 0) {
+ if (indent.isEmpty()) {
System.err.println("POINTER: " + pointer + "(" +
pointer.getClass().getName() + ")");
} else {
System.err.println(indent + " of " + pointer + "(" +
pointer.getClass().getName() + ")");