From 83de062f6aa2772554dcba928ffbf5c0e6653e92 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 11 Jun 2024 10:49:27 -0400 Subject: [PATCH] Use String.valueOf() --- .../apache/commons/jelly/expression/ConstantExpression.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/commons/jelly/expression/ConstantExpression.java b/core/src/main/java/org/apache/commons/jelly/expression/ConstantExpression.java index 0575c0b37..57a696287 100644 --- a/core/src/main/java/org/apache/commons/jelly/expression/ConstantExpression.java +++ b/core/src/main/java/org/apache/commons/jelly/expression/ConstantExpression.java @@ -16,6 +16,8 @@ */ package org.apache.commons.jelly.expression; +import java.util.Objects; + import org.apache.commons.jelly.JellyContext; /**

ConstantExpression represents a constant expression.

@@ -47,7 +49,7 @@ public String toString() { @Override public String getExpressionText() { - return value == null ? "null" : value.toString(); + return String.valueOf(value); } /**