Skip to content

Commit

Permalink
Fix out-of-date comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 5, 2018
1 parent 96a8fe6 commit 573db59
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1416,8 +1416,8 @@ case class InitializeJavaBean(beanInstance: Expression, setters: Map[String, Exp
val ObjectType(beanClass) = beanInstance.dataType
setters.map {
case (name, expr) =>
// Looking for known type mapping first, then using Class attached in `ObjectType`.
// Finally also looking for general `Object`-type parameter for generic methods.
// Looking for known type mapping.
// But also looking for general `Object`-type parameter for generic methods.
val paramTypes = ScalaReflection.expressionJavaClasses(Seq(expr)) ++ Seq(classOf[Object])
val methods = paramTypes.flatMap { fieldClass =>
try {
Expand Down

0 comments on commit 573db59

Please sign in to comment.