From c39327a680d45e49b880ff6919b1b6b1a3e2be35 Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Tue, 23 Jul 2024 21:22:19 -0700 Subject: [PATCH] [SPARK-48975][PROTOBUF] Remove unnecessary `ScalaReflectionLock` definition from `protobuf` ### What changes were proposed in this pull request? This PR removes the unused object definition `ScalaReflectionLock` from the `protobuf` module. `ScalaReflectionLock` is a definition at the access scope of `protobuf` package, which was defined in SPARK-40654 | https://github.com/apache/spark/pull/37972 and become unused in SPARK-41639 | https://github.com/apache/spark/pull/39147. ### Why are the changes needed? Clean up unused definitions. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #47459 from LuciferYang/remove-ScalaReflectionLock. Authored-by: yangjie01 Signed-off-by: Dongjoon Hyun --- .../src/main/scala/org/apache/spark/sql/protobuf/package.scala | 1 - 1 file changed, 1 deletion(-) diff --git a/connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/package.scala b/connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/package.scala index 82cdc6b9c5816..046b8acdb5e5c 100644 --- a/connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/package.scala +++ b/connector/protobuf/src/main/scala/org/apache/spark/sql/protobuf/package.scala @@ -17,5 +17,4 @@ package org.apache.spark.sql package object protobuf { - protected[protobuf] object ScalaReflectionLock }