e902d4a048 ^
c1f5cbd4a0 ^
1 2 3 4 5 6 7 8
9
object RClose { type ReflectCloseable = { def close(): Unit } def withReflectCloseable[T <: ReflectCloseable, R](s: T)(action: T => R): R = try { action(s) } finally { s.close() } }