Skip to content

Commit

Permalink
simplify TypeMagnet impl
Browse files Browse the repository at this point in the history
  • Loading branch information
tribbloid committed Feb 18, 2023
1 parent 7407cc4 commit a761ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ trait TypeMagnet[T] extends ReflectionLock with Serializable {

object TypeMagnet extends TypeMagnet_Imp2 {

trait _Ttg[T] extends TypeMagnet[T] {}

protected class FromTypeTag[T](@transient protected val __typeTag: TypeTag[T]) extends _Ttg[T] {
protected class FromTypeTag[T](@transient protected val __typeTag: TypeTag[T]) extends TypeMagnet[T] {

{
typeTag_ser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import scala.reflect.ClassTag

abstract class TypeMagnet_Imp1 {

trait _Ctg[T] extends TypeMagnet[T] {
protected class FromClassTag[T](val _classTag: ClassTag[T]) extends TypeMagnet[T] {

protected def _classTag: ClassTag[T]
@transient final override lazy val asClassTag: ClassTag[T] = _classTag

override lazy val asClass: Class[T] = {
Expand Down Expand Up @@ -53,8 +52,6 @@ abstract class TypeMagnet_Imp1 {
}
}

protected class FromClassTag[T](val _classTag: ClassTag[T]) extends _Ctg[T]

trait CachedBuilder[I[_]] extends Serializable {

def createNew[T](v: I[T]): TypeMagnet[T]
Expand Down

0 comments on commit a761ba0

Please sign in to comment.