Skip to content

Commit

Permalink
Use 'private[storage]' for case classes instead of 'sealed'
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Nov 2, 2014
1 parent 62103fd commit b88c919
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
}

0 comments on commit b88c919

Please sign in to comment.