Skip to content

Commit ae212c8

Browse files
committed
Improved docs
1 parent 304c97b commit ae212c8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ private[spark] object SerializationDebugger extends Logging {
129129
* Visit an externalizable object.
130130
* Since writeExternal() can choose add arbitrary objects at the time of serialization,
131131
* the only way to capture all the objects it will serialize is by using a
132-
* dummy ObjectOutput object that captures all the inner objects, and then visit all the
133-
* captured objects to test their serializability.
132+
* dummy ObjectOutput that collects all the relevant objects for further testing.
134133
*/
135134
private def visitExternalizable(o: java.io.Externalizable, stack: List[String]): List[String] =
136135
{
@@ -164,8 +163,8 @@ private[spark] object SerializationDebugger extends Logging {
164163
// serialization code to recursively serialize the fields of an object and
165164
// its parent classes. For example, if there are the following classes.
166165
//
167-
// class ParentClass(parentField: Int)
168-
// class ChildClass(childField: Int) extends Parent(1)
166+
// class ParentClass(parentField: Int)
167+
// class ChildClass(childField: Int) extends ParentClass(1)
169168
//
170169
// Then serializing the an object Obj of type ChildClass requires for serializing the fields
171170
// of ParentClass (that is, parentField), and then serializing the fields of ChildClass
@@ -219,8 +218,7 @@ private[spark] object SerializationDebugger extends Logging {
219218
* Visit a serializable object which has the writeObject() defined.
220219
* Since writeObject() can choose add arbitrary objects at the time of serialization,
221220
* the only way to capture all the objects it will serialize is by using a
222-
* dummy ObjectOutputStream that captures all the inner objects, and then visit all the
223-
* captured objects to test their serializability.
221+
* dummy ObjectOutputStream that collects all the relevant fields for further testing.
224222
*/
225223
private def visitSerializableWithWriteObjectMethod(
226224
o: Object, stack: List[String]): List[String] = {

0 commit comments

Comments
 (0)