-
Notifications
You must be signed in to change notification settings - Fork 165
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
(#1116) Extends TextEnvelope when possible #1131
(#1116) Extends TextEnvelope when possible #1131
Conversation
Job #1131 is now in scope, role is |
This pull request #1131 is assigned to @vzurauskas/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @llorllale/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 |
Codecov Report
@@ Coverage Diff @@
## master #1131 +/- ##
=========================================
Coverage 88.83% 88.83%
Complexity 1581 1581
=========================================
Files 272 272
Lines 3931 3931
Branches 215 215
=========================================
Hits 3492 3492
Misses 386 386
Partials 53 53
Continue to review full report at Codecov.
|
@vzurauskas ping ? :) |
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 Review done.
); | ||
} | ||
return out.toString(); | ||
super((Scalar<String>) () -> { |
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 Since type casting is discouraged in EO, consider adding a private constructor which would take Scalar<String>
(or just Text
) and call super
from there.
); | ||
} | ||
return string; | ||
super((Scalar<String>) () -> { |
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 Same comment about type casting.
@@ -58,15 +48,10 @@ public Synced(final Text text) { | |||
* @param lck The lock | |||
*/ | |||
public Synced(final Text text, final Object lck) { | |||
this.origin = text; | |||
this.lock = lck; | |||
super((Scalar<String>) () -> { |
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 Same comment about type casting.
ba66fa7
to
4a301a9
Compare
@vzurauskas thanks you, in the end I went with using anonymous classes (which is exactly equivalent to a lambda apart from being explicit in the type) to solve this issue because for example |
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.
@llorllale Looks good.
@rultor merge |
@llorllale OK, I'll try to merge now. You can check the progress of the merge here |
@llorllale Done! FYI, the full log is here (took me 13min) |
@sereshqua/z please review this job completed by @vzurauskas/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
Job #1131 is not in the agenda of @vzurauskas/z, can't inspect |
The job #1131 is now out of scope |
Payment to |
@0crat quality good |
Order was finished, quality is "good": +20 point(s) just awarded to @vzurauskas/z |
Quality review completed: +4 point(s) just awarded to @sereshqua/z |
@llorllale is it possible to make a release from master, or at least one including these changes? The new structure of |
@scristalli I don't see the difference? |
@llorllale if I'm not mistaken, in 0.41 |
@rultor release, tag is |
@llorllale OK, I will release it now. Please check the progress here |
@llorllale @victornoel Oops, I failed. You can see the full log here (spent 8min)
|
@llorllale release failed... |
@rultor release, tag is |
@llorllale OK, I will release it now. Please check the progress here |
@llorllale Done! FYI, the full log is here (took me 13min) |
This is for #1116.
I've applied the new pattern for 3 classes and added a todo to continue the work.