mysema/scalagen — Issue #33: Simplify if/else patterns
Author: timowest
Created: 2012-01-22 22:04:40+00:00
State: open

turn

if (a == a1) return b1
else if (a == a2) return b2
else return x

into

a match {
case a1 => b1
case a2 => b2
case _ => x
}