File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/scala/org/apache/spark/serializer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ abstract class SerializerInstance {
125125 * A stream for writing serialized objects.
126126 */
127127@ DeveloperApi
128- abstract class SerializationStream {
128+ abstract class SerializationStream extends Closeable {
129129 /** The most general-purpose method to write an object. */
130130 def writeObject [T : ClassTag ](t : T ): SerializationStream
131131 /** Writes the object representing the key of a key-value pair. */
@@ -149,7 +149,7 @@ abstract class SerializationStream {
149149 * A stream for reading serialized objects.
150150 */
151151@ DeveloperApi
152- abstract class DeserializationStream {
152+ abstract class DeserializationStream extends Closeable {
153153 /** The most general-purpose method to read an object. */
154154 def readObject [T : ClassTag ](): T
155155 /** Reads the object representing the key of a key-value pair. */
You can’t perform that action at this time.
0 commit comments