X Tutup
Skip to content

optimize some code#92

Closed
bboyHan wants to merge 6 commits intoopenstack4j:masterfrom
bboyHan:optimize-code
Closed

optimize some code#92
bboyHan wants to merge 6 commits intoopenstack4j:masterfrom
bboyHan:optimize-code

Conversation

@bboyHan
Copy link
Copy Markdown
Contributor

@bboyHan bboyHan commented Oct 28, 2020

#91 fixed it.

I have done an in-depth reading of the source code of this framework, and feel that it is well written. Therefore, I also hope to join your team to develop and extend functions. can I ?

@olivergondza
Copy link
Copy Markdown
Member

@bboyHan, thanks for doing this.

I am about to initiate a project to clean up the codebase as this fits in just right: https://github.com/openstack4j/openstack4j/projects/1

}
m.fixedIps.removeIf(fixedIP ->
fixedIP.getSubnetId() != null &&
fixedIP.getSubnetId().equals(subnetId) &&
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch. This can be made even simpler by using Object#equals.

}
m.allowedAddressPairs.removeIf(allowedAddress ->
allowedAddress.getIpAddress() != null &&
allowedAddress.getIpAddress().equals(ipAddress) &&
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same as above.

Copy link
Copy Markdown
Member

@olivergondza olivergondza left a comment

Choose a reason for hiding this comment

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

I have added some review comments. The rest looks quite good. Please address those, and this can be merged.

Copy link
Copy Markdown
Contributor Author

@bboyHan bboyHan left a comment

Choose a reason for hiding this comment

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

Thanks for your reply!
Should I need to delete the other codes that you didn't added comments?

@olivergondza
Copy link
Copy Markdown
Member

@bboyHan, Parts I have not commented on are ok. Please fix what I have commented on.

@olivergondza
Copy link
Copy Markdown
Member

Please resolve conflicts sothis can be merged.

@bboyHan bboyHan closed this Nov 3, 2020
@bboyHan bboyHan deleted the optimize-code branch November 4, 2020 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup