Permalink
Browse files

Made a small typing change to quiet a scala 2.8.0 pattern matching er…

…ror.
  • Loading branch information...
davewhittaker committed Oct 12, 2011
1 parent cbf63af commit e6bab09bad214847a546e0f88d9386bbc20574ef
@@ -141,10 +141,10 @@ class RecordMetaDataFactory extends FieldMetaDataFactory {
fieldScale getOrElse super.scale
}
- private def fieldFor(o: AnyRef) = getter.get.invoke(o).asInstanceOf[TypedField[AnyRef]]
+ private def fieldFor(o: AnyRef) = getter.get.invoke(o).asInstanceOf[TypedField[_ <: AnyRef]]
override def set(target: AnyRef, value: AnyRef) = {
- val typedField: TypedField[AnyRef] = fieldFor(target)
+ val typedField: TypedField[_] = fieldFor(target)
typedField.setFromAny(Box !! value)
}

0 comments on commit e6bab09

Please sign in to comment.