-
Notifications
You must be signed in to change notification settings - Fork 4
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
Expose Pair
and its factory method
#9
Conversation
@@ -26,7 +26,7 @@ | |||
* @param <L> The Java class that the left-hand side of the relation is mapped to | |||
* @param <R> The Java class that the right-hand side of the relation is mapped to. | |||
*/ | |||
final class Relation<L, R> { | |||
public final class Relation<L, R> { |
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.
It's because Pair
is static nested class. We can move it to a separate file. IDK which one is more desirable.
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 this file does not otherwise need to be public (didn't check) then yes I think moving it out makes sense. The smaller the API surface, the better.
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
============================================
+ Coverage 87.97% 89.16% +1.19%
Complexity 117 117
============================================
Files 8 8
Lines 291 277 -14
Branches 26 23 -3
============================================
- Hits 256 247 -9
+ Misses 4 2 -2
+ Partials 31 28 -3
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.
This LGTM, but I think codecov is a bit too overzealous.
I guess we should review the Codecov settings, but OTOH that class should best tested. Not sure how the percentage is calculated exactly. If there are no other takers I'll probably spend some time later today/tomorrow to just add the relevant tests. (Since the class is now public I'd even argue we should add some documentation.) |
b4b957c
to
6f61c0b
Compare
(Rebased.) |
I would rather add Lombok or Guava as a build-only dependency and generate |
We can add Immutables as a build-only dependency; works for me 👍 |
Pushed a commit in which |
Added some documentation. Given the names of the accessor methods ( |
Changes LGTM.
Works for me. |
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.
Approving. Note to self: port the pom.xml
changes to oss-parent
.
LGTM |
Suggested commit message:
|
No description provided.