kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun...@apache.org
Subject git commit: kafka-940; Scala match error in javaapi.Implicits; patched by Joel Koshy; reviewed by Jun Rao
Date Thu, 13 Jun 2013 03:43:21 GMT
Updated Branches:
  refs/heads/0.8 6881bf08f -> 640026467


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


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/64002646
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/64002646
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/64002646

Branch: refs/heads/0.8
Commit: 640026467cf705fbcf6fd6bcada058b18a95bff5
Parents: 6881bf0
Author: Joel Koshy <jjkoshy@gmail.com>
Authored: Wed Jun 12 20:42:40 2013 -0700
Committer: Jun Rao <junrao@gmail.com>
Committed: Wed Jun 12 20:42:40 2013 -0700

----------------------------------------------------------------------
 core/src/main/scala/kafka/javaapi/Implicits.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/64002646/core/src/main/scala/kafka/javaapi/Implicits.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/javaapi/Implicits.scala b/core/src/main/scala/kafka/javaapi/Implicits.scala
index cf82b38..ee0a71d 100644
--- a/core/src/main/scala/kafka/javaapi/Implicits.scala
+++ b/core/src/main/scala/kafka/javaapi/Implicits.scala
@@ -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]
     }
   }
 }


Mime
View raw message