We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d4fb4 commit 0332bf7Copy full SHA for 0332bf7
streampark-common/src/main/scala/org/apache/streampark/common/util/Implicits.scala
@@ -55,7 +55,7 @@ object Implicits extends ToScalaImplicits with ToJavaImplicits with DecorateAsJa
55
56
implicit class AutoCloseImplicits[T <: AutoCloseable](autoCloseable: T) {
57
implicit def using[R](func: T => R)(implicit excFunc: Throwable => R = null): R = {
58
- var exception: Option[Throwable] = null
+ var exception: Option[Throwable] = Option.empty
59
try {
60
func(autoCloseable)
61
} catch {
0 commit comments