-
Notifications
You must be signed in to change notification settings - Fork 195
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
Bump qulice to 0.18.5 #886
Conversation
Job #886 is now in scope, role is |
Codecov Report
@@ Coverage Diff @@
## master #886 +/- ##
============================================
- Coverage 75.48% 75.44% -0.04%
+ Complexity 981 980 -1
============================================
Files 220 220
Lines 4724 4725 +1
Branches 369 372 +3
============================================
- Hits 3566 3565 -1
Misses 1003 1003
- Partials 155 157 +2
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.
@victornoel Please take a look
ex.getMessage(), | ||
Matchers.containsString(closed) | ||
ex, | ||
Matchers.instanceOf(ClosedChannelException.class) |
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 Let's use new IsInstanceOf
instead Matchers.instanceOf
@paulodamaso I didn't replace the It is caused by this PMD rule: https://pmd.github.io/latest/pmd_rules_java_performance.html#avoidfilestream Maybe @krzyk can tell us more about the expected fix for this rule in qulice? |
@victornoel I see. Well, let's use cactoos' classes where possible then, to deal with these input and output streams |
@paulodamaso can you point to me which class should be used? If we end up using classes that wrap |
@victornoel Why? I think that we should enforce and promote EO programming in |
@paulodamaso sorry, I guess I wasn't clear. I am 100% for EO style things. The question is: do we have actual classes that properly implements File-based If yes, then great, if not, it means we are just postponing solving this issue, because it means that the cactoos classes we would use are susceptible to the problems described in the PMD link. If qulice integrated this rule, it means that it is important for quality to follow it. Anyway, I'm ok with using any cactoos class there, I will make the change. In the end you are the one responsible as ARC, so it's good to me :P |
@victornoel You are right and I agree with you. I've checked cactoos and we do not have file-based inputstream access which prevents the problems that you showed on the link. Actually we use the "wrong way" there, and as cactoos qulice version is older too, this problems does not appear in quality checks for that project. I've already notified @llorllale in cactoos project about this (yegor256/cactoos#891 (comment)), but we can't use this potentially unsafe code in our project. So I'll ask you to let all these file readers and input/output streams the way you made before (so they comply with qulice checks) and please put a puzzle somewhere so we do not forget about this and can fix this once cactoos updates its libraries. How about that? |
a0d928c
to
819ae28
Compare
@paulodamaso I have updated the commits, thanks! |
@paulodamaso wait sorry, there is some conflicts to be resolved |
819ae28
to
765cdc3
Compare
@paulodamaso this time it should be good :) |
@victornoel Almost there, please take a look at the comment I've made before: https://github.com/yegor256/takes/pull/886/files#r240299333 |
@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 18min)
|
765cdc3
to
73d692f
Compare
@paulodamaso I think my todo was properly formatted or something like that, I've pushed again |
@victornoel It's still failing, please take a look |
73d692f
to
4e072c7
Compare
@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 8min)
|
@paulodamaso I'm not sure why there is a test not working in appveyor… strangely, I can't see the test being ran in the travis build. |
4e072c7
to
cd1e411
Compare
@paulodamaso I rebased on master since there were conflicts |
@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 23min) |
Job |
The job #886 is now out of scope |
For #880
I had to change a test (
RqMtFakeTest.closesAllParts
) because of the rule AvoidFileStream that made me to use a different implementation for some stream and thus changed some of the exception thrown.Apart from that, it is only cosmetics.