Skip to content

Commit

Permalink
[ADAM-1610] Mark non-serializable field in TwoBitFile as transient.
Browse files Browse the repository at this point in the history
Resolves #1610.
  • Loading branch information
fnothaft committed Jul 19, 2017
1 parent 961f90a commit eaa6a01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private object TwoBitFile {
class TwoBitFile(byteAccess: ByteAccess) extends ReferenceFile {

// load file into memory
private[util] val bytes = ByteBuffer.wrap(byteAccess.readFully(0, byteAccess.length().toInt))
@transient private[util] val bytes = ByteBuffer.wrap(byteAccess.readFully(0, byteAccess.length().toInt))
private[util] val numSeq = readHeader()
// hold current byte position of start of current index record
var indexRecordStart = TwoBitFile.FILE_INDEX_OFFSET
Expand Down

0 comments on commit eaa6a01

Please sign in to comment.