From b88c91959218940898fae3cea59ae9f7c6681166 Mon Sep 17 00:00:00 2001 From: zsxwing Date: Sun, 2 Nov 2014 13:12:10 +0800 Subject: [PATCH] Use 'private[storage]' for case classes instead of 'sealed' --- .../apache/spark/storage/ShuffleBlockFetcherIterator.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala b/core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala index faf08526bb18d..989d1b95777cf 100644 --- a/core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala +++ b/core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala @@ -332,7 +332,7 @@ object ShuffleBlockFetcherIterator { * Note that this is NOT the exact bytes. * @param buf [[ManagedBuffer]] for the content. */ - sealed case class SuccessFetchResult(blockId: BlockId, size: Long, buf: ManagedBuffer) + private[storage] case class SuccessFetchResult(blockId: BlockId, size: Long, buf: ManagedBuffer) extends FetchResult { require(buf != null) require(size >= 0) @@ -343,5 +343,6 @@ object ShuffleBlockFetcherIterator { * @param blockId block id * @param e the failure exception */ - sealed case class FailureFetchResult(blockId: BlockId, e: Throwable) extends FetchResult + private[storage] case class FailureFetchResult(blockId: BlockId, e: Throwable) + extends FetchResult }