-
Notifications
You must be signed in to change notification settings - Fork 45
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
add some test cases for util package #70
Conversation
Change-Id: I39b457c2a7a338a909b3aa0ba8ff4a8b5057b339
Codecov Report
@@ Coverage Diff @@
## master #70 +/- ##
============================================
+ Coverage 85.08% 87.61% +2.53%
- Complexity 793 829 +36
============================================
Files 61 61
Lines 2299 2326 +27
Branches 341 352 +11
============================================
+ Hits 1956 2038 +82
+ Misses 192 147 -45
+ Partials 151 141 -10
Continue to review full report at Codecov.
|
List<T> list = new ArrayList<>(original); | ||
if (to == -1) { | ||
if (from < 0) { | ||
E.checkArgument(from >= 0, |
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.
if seems unnecessary, consider for perf? If so, add a comment
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.
to keep same style with "if (to < 0)"
Change-Id: Id95c4e2e5b9f4453d57750470fc54d58ec6531d9
if (to == -1) { | ||
E.checkArgument(from >= 0, | ||
"Invalid from parameter of subSet(): %s", from); | ||
if (to < 0) { |
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.
"if (to < 0)" => "if (to < from)". IllegalArgumentException will be thrown if to < from。
Change-Id: I32d83f5738250eca23ae16c2ccbf52059a874bf6
Change-Id: I39b457c2a7a338a909b3aa0ba8ff4a8b5057b339