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 2022/10/13 18:07:37 UTC

[commons-lang] branch master updated: Use JRE API

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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 10db68e49 Use JRE API
10db68e49 is described below

commit 10db68e492fdadb69f3c02fbb8f88660e22739ef
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Oct 13 14:07:31 2022 -0400

    Use JRE API
---
 src/main/java/org/apache/commons/lang3/mutable/MutableObject.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java b/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
index 1e4e43dfd..ceec4c674 100644
--- a/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
+++ b/src/main/java/org/apache/commons/lang3/mutable/MutableObject.java
@@ -18,6 +18,7 @@
 package org.apache.commons.lang3.mutable;
 
 import java.io.Serializable;
+import java.util.Objects;
 
 /**
  * A mutable {@link Object} wrapper.
@@ -114,7 +115,7 @@ public class MutableObject<T> implements Mutable<T>, Serializable {
      */
     @Override
     public String toString() {
-        return value == null ? "null" : value.toString();
+        return Objects.toString(value);
     }
 
 }