Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #609 from adamkozuch/new1
Browse files Browse the repository at this point in the history
replace deprecated erasure by runtimeClass
  • Loading branch information
johnynek committed Mar 13, 2015
2 parents 357ed02 + 060c6c4 commit c6e8222
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import java.io.Serializable

object CompletedBuilder {
def injectionRegistrar[T: Manifest](injection: Injection[T, Array[Byte]]) =
InjectionRegistrar(manifest[T].erasure.asInstanceOf[Class[T]], injection)
InjectionRegistrar(manifest[T].runtimeClass.asInstanceOf[Class[T]], injection)

def injectionDefaultRegistrar[T: Manifest](injection: Injection[T, Array[Byte]]) =
InjectionDefaultRegistrar(manifest[T].erasure.asInstanceOf[Class[T]], injection)
InjectionDefaultRegistrar(manifest[T].runtimeClass.asInstanceOf[Class[T]], injection)
}

case class CompletedBuilder[P <: Platform[P], K, V](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import com.twitter.summingbird.batch.{ BatchID, Timestamp }
object SBChillRegistrar {

def injectionRegistrar[T: Manifest: Codec]: InjectionRegistrar[T] =
InjectionRegistrar(manifest[T].erasure.asInstanceOf[Class[T]], implicitly[Codec[T]])
InjectionRegistrar(manifest[T].runtimeClass.asInstanceOf[Class[T]], implicitly[Codec[T]])

def injectionDefaultRegistrar[T: Manifest: Codec]: InjectionDefaultRegistrar[T] =
InjectionDefaultRegistrar(manifest[T].erasure.asInstanceOf[Class[T]], implicitly[Codec[T]])
InjectionDefaultRegistrar(manifest[T].runtimeClass.asInstanceOf[Class[T]], implicitly[Codec[T]])

def kryoRegClass(clazz: Class[_]*) =
{ k: Kryo =>
Expand Down

0 comments on commit c6e8222

Please sign in to comment.