Use JRE API

This commit is contained in:
Gary Gregory 2022-10-13 14:07:31 -04:00
parent d4c311d255
commit 10db68e492
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}