[Improvement] Fix unchecked type conversions#6003
Conversation
ruanwenjun
left a comment
There was a problem hiding this comment.
LGTM
And I have a question, when should we use Collections.emptySet in program, becase this method return an immutable set, If the upper layer want to add elements, they need to create a new HashSet.
Great!
I think |
|
@lyxell OK, I just feel it's troublesome to do a copy whenever get a set or list. Maybe it's common in functional scenarios. And you need to fix the code style. |
|
@ruanwenjun Sure, this pull request did not introduce that checkstyle error, but I can fix it anyway. |
Codecov Report
@@ Coverage Diff @@
## dev #6003 +/- ##
============================================
- Coverage 46.75% 46.75% -0.01%
+ Complexity 3744 3743 -1
============================================
Files 604 604
Lines 24829 24829
Branches 2836 2836
============================================
- Hits 11610 11608 -2
- Misses 12077 12078 +1
- Partials 1142 1143 +1
Continue to review full report at Codecov.
|
|
Kudos, SonarCloud Quality Gate passed! |








Fix compiler warnings about unchecked type conversions.
Brief change log
DAG.java,ResourceProcessDefinitionUtilsTest.java,NettyExecutorManager.javaandMasterExecThreadTest.javaVerify this pull request
No functional changes, test coverage is not affected.
This patch was generated automatically using Logifix.