Skip to content

Commit

Permalink
Use String.valueOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 11, 2024
1 parent 37e602f commit 83de062
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package org.apache.commons.jelly.expression;

import java.util.Objects;

import org.apache.commons.jelly.JellyContext;

/** <p><code>ConstantExpression</code> represents a constant expression.</p>
Expand Down Expand Up @@ -47,7 +49,7 @@ public String toString() {

@Override
public String getExpressionText() {
return value == null ? "null" : value.toString();
return String.valueOf(value);
}

/**
Expand Down

0 comments on commit 83de062

Please sign in to comment.