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-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new 00e642b8 Reuse Objects.toString()
00e642b8 is described below
commit 00e642b8feadf682d435d6e4fbc69da66a26a4ae
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Sep 20 09:52:45 2023 -0400
Reuse Objects.toString()
---
src/main/java/org/apache/commons/jexl3/internal/InterpreterBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/jexl3/internal/InterpreterBase.java
b/src/main/java/org/apache/commons/jexl3/internal/InterpreterBase.java
index bdfc3269..97888e29 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/InterpreterBase.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/InterpreterBase.java
@@ -1082,7 +1082,7 @@ public abstract class InterpreterBase extends
ParserVisitor {
+ ", argument: " + value.getClass().getSimpleName();
throw new UnsupportedOperationException(error, xcause);
}
- final String attrStr = attribute != null ? attribute.toString() : null;
+ final String attrStr = Objects.toString(attribute, null);
unsolvableProperty(node, attrStr, true, xcause);
}
}