-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace manual array copy #500
Conversation
Replace manual array copying with System.arraycopy().
Codecov Report
@@ Coverage Diff @@
## dev #500 +/- ##
===========================================
- Coverage 46.64% 46.6% -0.05%
+ Complexity 2218 2216 -2
===========================================
Files 108 108
Lines 25279 25276 -3
Branches 4167 4164 -3
===========================================
- Hits 11791 11779 -12
Misses 11463 11463
- Partials 2025 2034 +9
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the array loop provides better code readability, and approving this would mean we want to apply this change to other places in the code that uses arrays in this manner. I'm ok with leaving the manual array copy as it is.
@peterbae These changes were detected by FIndBugs as array copying that could be directly replaced by I'm not suggesting changing any of the others, but just these 3 simple instances. |
Replace manual array copying with System.arraycopy().