Skip to content
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

#445 - Extracted a new class and modified another to make it reusable. #463

Merged
merged 3 commits into from
May 1, 2020

Conversation

vzurauskas
Copy link
Contributor

PR for #445

Extracted a new class. Also noticed a possibility to modify another so it could be reused. That solved the issue of a disabled test which I re-enabled and removed the corresponding todo.

@0crat
Copy link
Collaborator

0crat commented Apr 24, 2020

This pull request #463 is assigned to @Vatavuk/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 a monetary reward for this job

@Vatavuk
Copy link

Vatavuk commented Apr 25, 2020

@0crat refuse

@0crat
Copy link
Collaborator

0crat commented Apr 25, 2020

@0crat refuse (here)

@Vatavuk The user @Vatavuk/z resigned from #463, please stop working. Reason for job resignation: Order was cancelled

@0crat
Copy link
Collaborator

0crat commented Apr 25, 2020

This pull request #463 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 a monetary reward for this job

Copy link

@fanifieiev fanifieiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vzurauskas Please have a look at some comments

* Text signature of a class method, extracted from XML Skeleton.
* @since 0.30.9
*/
public final class XmlMethodSignature implements Text {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vzurauskas I think it is better to extend TextEnvelope

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fanifieiev Yes, looks better now.

}

@Override
public String asString() throws Exception {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vzurauskas What about utilizing some kind of caching here? Like Sticky .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fanifieiev It now extends TextEnvelope, so no need for caching anymore.

@fanifieiev
Copy link

@vzurauskas ping

@0crat
Copy link
Collaborator

0crat commented Apr 30, 2020

@fanifieiev/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@vzurauskas
Copy link
Contributor Author

@fanifieiev Done.

Copy link

@fanifieiev fanifieiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vzurauskas One more comment

* @todo #445:30min This method works only for skeletons with a single
* class because it assigns all methods in the skeleton to the first class
* it finds. Instead, it should iterate through classes and then through
* methods of each class.
*/
private static List<Node> build(final Skeleton skeleton) throws IOException {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vzurauskas I think this static method is a good candidate to become a class as stated here https://www.yegor256.com/2017/02/07/private-method-is-new-class.html.
So could you please leave a todo to make it a class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fanifieiev Done.

Copy link

@fanifieiev fanifieiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulodamaso Please merge

@paulodamaso
Copy link
Collaborator

@rultor merge

@rultor
Copy link
Collaborator

rultor commented May 1, 2020

@rultor merge

@paulodamaso OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 05d4100 into cqfn:master May 1, 2020
@rultor
Copy link
Collaborator

rultor commented May 1, 2020

@rultor merge

@paulodamaso Done! FYI, the full log is here (took me 14min)

@0crat 0crat added the qa label May 1, 2020
@0crat
Copy link
Collaborator

0crat commented May 1, 2020

@sereshqua/z please review this job completed by @fanifieiev/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the scope label May 1, 2020
@sereshqua
Copy link

@0crat quality good

2 similar comments
@sereshqua
Copy link

@0crat quality good

@sereshqua
Copy link

@0crat quality good

@0crat 0crat added quality/good and removed qa labels May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants