Skip to content

Commit

Permalink
泛型处理
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli.xue committed Mar 13, 2017
1 parent 7e38890 commit 3d3f53b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ReturnT<String> callback(HandleCallbackParam handleCallbackParam) {
// valid log item
XxlJobLog log = XxlJobDynamicScheduler.xxlJobLogDao.load(handleCallbackParam.getLogId());
if (log == null) {
return new ReturnT(ReturnT.FAIL_CODE, "log item not found.");
return new ReturnT<String>(ReturnT.FAIL_CODE, "log item not found.");
}

// trigger success, to trigger child job, and avoid repeat trigger child job
Expand Down Expand Up @@ -81,7 +81,7 @@ public ReturnT<String> callback(HandleCallbackParam handleCallbackParam) {
log.setHandleMsg(handleMsg.toString());
XxlJobDynamicScheduler.xxlJobLogDao.updateHandleInfo(log);

return new ReturnT(ReturnT.SUCCESS_CODE, null);
return new ReturnT<String>(ReturnT.SUCCESS_CODE, null);
}

}

0 comments on commit 3d3f53b

Please sign in to comment.