Skip to content

Commit

Permalink
Deprecate reflection-based JobTest apply method
Browse files Browse the repository at this point in the history
  • Loading branch information
rubanm committed Jun 30, 2016
1 parent e2e0b4f commit 8ded515
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ded515

Please sign in to comment.