-
Notifications
You must be signed in to change notification settings - Fork 170
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
(#1292) SetOf and Sorted are real in memory sets #1316
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1316 +/- ##
============================================
- Coverage 89.61% 89.57% -0.05%
+ Complexity 1665 1664 -1
============================================
Files 280 280
Lines 3987 3981 -6
Branches 211 211
============================================
- Hits 3573 3566 -7
Misses 380 380
- Partials 34 35 +1
Continue to review full report at Codecov.
|
This pull request #1316 is assigned to @fanifieiev/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @paulodamaso/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be no monetary reward for this job |
c3e5d07
to
88ba4d9
Compare
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.
@victornoelPlease see my comments
|
||
/** | ||
* Iterable as {@link Set}. | ||
* | ||
* <p>This class should be used very carefully. You must understand that |
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.
@victornoel Maybe just a few words describing this class???
Like: based on HashSet
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.
@fanifieiev thank you, it is done
|
||
/** | ||
* Sorted Iterable as {@link Set}. | ||
* | ||
* <p>This class should be used very carefully. You must understand that |
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.
@victornoel Maybe just a few words describing this class???
Like: based on TreeSet
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.
@fanifieiev thank you, it is done, I also added a todo so that the SortedSet
interface is also implemented.
@@ -58,15 +53,9 @@ public Sorted(final Comparator<T> cmp, final T... array) { | |||
* @param cmp Comparator | |||
* @param src An {@link Iterable} | |||
*/ | |||
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") |
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.
@victornoel @paulodamaso We probably need to understand why this one required here, but not in ListOf
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.
@fanifieiev @paulodamaso what do you propose?
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.
@victornoel For example, create an issue for Qulice
project
88ba4d9
to
971d218
Compare
@@ -58,15 +53,9 @@ public Sorted(final Comparator<T> cmp, final T... array) { | |||
* @param cmp Comparator | |||
* @param src An {@link Iterable} | |||
*/ | |||
@SuppressWarnings("PMD.ConstructorOnlyInitializesOrCallOtherConstructors") |
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.
@victornoel For example, create an issue for Qulice
project
@victornoel ping |
@fanifieiev sorry for the delay. Please feel free to open such an issue in qulice, or maybe I can add a |
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.
@victornoel Agree, will open a ticket in qulice project.
@paulodamaso please merge
@rultor merge |
@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here |
@paulodamaso @victornoel Oops, I failed. You can see the full log here (spent 9min)
|
@rultor merge |
@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here |
@paulodamaso @victornoel Oops, I failed. You can see the full log here (spent 6min)
|
@rultor merge |
@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here |
@paulodamaso @victornoel Oops, I failed. You can see the full log here (spent 5min)
|
@rultor merge |
@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here |
@paulodamaso Done! FYI, the full log is here (took me 13min) |
Code review was too long (14 days), architects (@paulodamaso) were penalized, see §55 |
This is for #1292.
I also did Sorted since it seemed a good idea and there wasn't much work.
I'm not clear why I had to ignore
PMD.ConstructorOnlyInitializesOrCallOtherConstructors
though while it is not needed forListOf
orSetOf
... !