Skip to content

Commit

Permalink
Add @transient marker.
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jun 13, 2014
1 parent 788a0d9 commit 9d26ab8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ case class CaseWhen(branches: Seq[Expression]) extends Expression {
branches(1).dataType
}

private[this] lazy val branchesArr = branches.toArray
@transient private[this] lazy val predicates = branches
.sliding(2, 2).collect { case Seq(cond, _) => cond }.toSeq
@transient private[this] lazy val values = branches
.sliding(2, 2).collect { case Seq(_, value) => value }.toSeq
@transient private[this] lazy val branchesArr = branches.toArray
@transient private[this] lazy val predicates =
branches.sliding(2, 2).collect { case Seq(cond, _) => cond }.toSeq
@transient private[this] lazy val values =
branches.sliding(2, 2).collect { case Seq(_, value) => value }.toSeq

override def nullable = {
// If no value is nullable and no elseValue is provided, the whole statement defaults to null.
Expand Down

0 comments on commit 9d26ab8

Please sign in to comment.