chop-dbhi / dataexpress

[NOT MAINTAINED] DataExpress is a simple, Scala-based cross database ETL toolkit supporting Postgres, MySql, Oracle, SQLServer, and Sqlite
http://dataexpress.research.chop.edu
BSD 2-Clause "Simplified" License
72 stars 9 forks source link

Remove generic type T in case statement #20

Closed masinoa closed 11 years ago

masinoa commented 11 years ago

src/main/scala/edu/chop/cbmi/dataExpress/dataWriters/sql/SqlTableWriter.scala:91: abstract type pattern T is unchecked since it is eliminated by erasure case Some(t:T) => new_row += name->t

masinoa commented 11 years ago

changed to case Some(t) => new_row += name->t.asInstanceOf[T] this gets rid of the annoying compiler erasure warning, but now has an annoying asInstanceOf but no compiler warning.