From 8ded515e173b1873e5582979ae336f6df26bf1f6 Mon Sep 17 00:00:00 2001 From: Ruban Monu Date: Thu, 30 Jun 2016 16:53:37 -0700 Subject: [PATCH] Deprecate reflection-based JobTest apply method --- .../src/main/scala/com/twitter/scalding/JobTest.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scalding-core/src/main/scala/com/twitter/scalding/JobTest.scala b/scalding-core/src/main/scala/com/twitter/scalding/JobTest.scala index 4f40471479..7e280a7aea 100644 --- a/scalding-core/src/main/scala/com/twitter/scalding/JobTest.scala +++ b/scalding-core/src/main/scala/com/twitter/scalding/JobTest.scala @@ -26,12 +26,16 @@ import org.apache.hadoop.mapred.JobConf import scala.util.Try object JobTest { + + @deprecated(message = "Use the non-reflection based JobTest apply methods", since = "0.16.1") def apply(jobName: String) = { new JobTest((args: Args) => Job(jobName, args)) } + def apply(cons: (Args) => Job) = { new JobTest(cons) } + def apply[T <: Job: Manifest] = { val cons = { (args: Args) => manifest[T].runtimeClass