Add getLastTask() method to o.sf.util.StopWatch (and fix a couple of typos) [SPR-7134] #11793
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Richard Fearn opened SPR-7134 and commented
It would be handy to have a
getLastTask()
method to allow theTaskInfo
object to be passed around (e.g. for logging). Something like this:Also, there's a typo in
getLastTaskName()
, presumably becausegetLastTaskTimeMillis()
was copied. The exception message should read"can't get last name"
instead of"can't get last interval"
.Finally, I imagine this has something to do with the original use of this code, but shouldn't the execption messages in both
getLastTaskName()
andgetLastTaskTimeMillis()
refer to"tasks"
instead of"tests"
?Affects: 3.0.2
Referenced from: commits ceb668a
The text was updated successfully, but these errors were encountered: