kafka-940; Scala match error in javaapi.Implicits; patched by Joel Koshy; reviewed by Jun Rao

This commit is contained in:
Joel Koshy 2013-06-12 20:42:40 -07:00 committed by Jun Rao
parent 6881bf08f2
commit 640026467c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ private[javaapi] object Implicits extends Logging {
implicit def optionToJavaRef[T](opt: Option[T]): T = {
opt match {
case Some(obj) => obj
case None => null
case None => null.asInstanceOf[T]
}
}
}