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 2024/06/11 14:38:12 UTC
(commons-jcs) branch master updated: Use Objects.toString()
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-jcs.git
The following commit(s) were added to refs/heads/master by this push:
new d8b36956 Use Objects.toString()
d8b36956 is described below
commit d8b36956476a49ddf96a8edde444af95b8eb4db9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jun 11 10:38:07 2024 -0400
Use Objects.toString()
---
.../commons/jcs3/auxiliary/remote/CommonRemoteCacheAttributes.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/CommonRemoteCacheAttributes.java b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/CommonRemoteCacheAttributes.java
index 7ae08122..d62f1650 100644
--- a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/CommonRemoteCacheAttributes.java
+++ b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/remote/CommonRemoteCacheAttributes.java
@@ -1,5 +1,7 @@
package org.apache.commons.jcs3.auxiliary.remote;
+import java.util.Objects;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -126,7 +128,7 @@ public class CommonRemoteCacheAttributes
@Override
public String getRemoteTypeName()
{
- return remoteType != null ? remoteType.toString() : RemoteType.LOCAL.toString();
+ return Objects.toString(remoteType, RemoteType.LOCAL.toString());
}
/**