Skip to content

Commit

Permalink
Update from manifest.erasure to manifest.runtimeClass to get rid of d…
Browse files Browse the repository at this point in the history
…eprication warning.
  • Loading branch information
BenWhitehead committed Oct 16, 2014
1 parent daf8951 commit 8d58f92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ object JacksonWrapper {
}

private [this] def typeFromManifest(m: Manifest[_]): Type = {
if (m.typeArguments.isEmpty) { m.erasure }
if (m.typeArguments.isEmpty) { m.runtimeClass }
else new ParameterizedType {
def getRawType = m.erasure
def getRawType = { m.runtimeClass }
def getActualTypeArguments = m.typeArguments.map(typeFromManifest).toArray
def getOwnerType = null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.twitter.finagle.http.path.{->, /, Root}
import com.twitter.util.Future
import io.finch._
import io.finch.response._
import io.github.benwhitehead.finch.request.{RequiredStringBody, RequiredBody, DelegateService}
import io.github.benwhitehead.finch.request.{RequiredStringBody, DelegateService}

/**
* @author Ben Whitehead
Expand Down

0 comments on commit 8d58f92

Please sign in to comment.