Remove ScheduleUtil,use the existing CronUtils#1904
Conversation
CronUtils is a public quartz tools, then the project dolphinscheduler-api can remove dolphinscheduler-server
These code are duplicated, is it possible to encapsulate then as a method? |
Use public methods to simplify duplicate code
|
@Jave-Chen ,use public methods to simplify duplicate code |
Codecov Report
@@ Coverage Diff @@
## dev #1904 +/- ##
======================================
Coverage ? 24.27%
======================================
Files ? 298
Lines ? 14388
Branches ? 2371
======================================
Hits ? 3493
Misses ? 10467
Partials ? 428
Continue to review full report at Codecov.
|
|
Add include record at incubator-dolphinscheduler/pom.xml will get right UT coverage. |
dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/cron/CronUtilsTest.java
Outdated
Show resolved
Hide resolved
|
+1 good job |
| // strCrontab = "0/50 0/59 * * * ? *"; | ||
| // strCrontab = "3/5 * 0/5 * * ? *"; | ||
| // strCrontab = "1/5 3/5 1/5 3/30 * ? *"; | ||
|
|
There was a problem hiding this comment.
I think 73-75 line can be removed.
|
Kudos, SonarCloud Quality Gate passed!
|
What is the purpose of the pull request
CronUtils.java is a public quartz tools, so delete the ScheduleUtil.java, then the project dolphinscheduler-api can remove dolphinscheduler-server
Verify this pull request
the command 'mvn clean package -Dmaven.test.skip=true' is success