You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2024/12/16 05:07:03 UTC
(spark) 02/02: Revert "[SPARK-50430][CORE] Use the standard Properties.clone instead of manual clone"
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
commit f7c48fe24fd8fb5f7f3eb9b3bec2659d99e4307c
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Mon Dec 16 14:06:45 2024 +0900
Revert "[SPARK-50430][CORE] Use the standard Properties.clone instead of manual clone"
This reverts commit 5ff129ac8261c674b90545f3e1651e166dbc6249.
---
core/src/main/scala/org/apache/spark/util/Utils.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/main/scala/org/apache/spark/util/Utils.scala b/core/src/main/scala/org/apache/spark/util/Utils.scala
index 8762f0a6cdbc..3b0efffedec6 100644
--- a/core/src/main/scala/org/apache/spark/util/Utils.scala
+++ b/core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -2982,7 +2982,9 @@ private[spark] object Utils
if (props == null) {
return props
}
- props.clone().asInstanceOf[Properties]
+ val resultProps = new Properties()
+ props.forEach((k, v) => resultProps.put(k, v))
+ resultProps
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org