SbloodyS commented on code in PR #18585:
URL:
https://github.com/apache/dolphinscheduler/pull/18585#discussion_r4043444917
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/TaskDefinitionController.java:
##########
@@ -88,7 +92,17 @@ public Result queryTaskDefinitionVersions(@Parameter(hidden
= true) @RequestAttr
@RequestParam(value = "pageNo")
int pageNo,
@RequestParam(value =
"pageSize") int pageSize) {
checkPageParams(pageNo, pageSize);
- return taskDefinitionService.queryTaskDefinitionVersions(loginUser,
projectCode, code, pageNo, pageSize);
+ Result result =
taskDefinitionService.queryTaskDefinitionVersions(loginUser, projectCode, code,
pageNo,
+ pageSize);
+ @SuppressWarnings("unchecked")
Review Comment:
I don't think it's a good way to abuse `@SuppressWarnings("unchecked")`. We
should try to avoid this problem in the official code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]