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

Small polish and performance improvements #64

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

gonchik
Copy link

@gonchik gonchik commented Jan 14, 2019

Hi!

This PR includes small adapt for Java 8.
Internally, we reused this #59 PR which fixed issue #58 .

I will be happy if you upload on marketplace.atlassian.com.
Because our administrators can updated through UPM. :)

Thanks

Cheers,
Gonchik Tsymzhitov

Copy link

@apetres apetres left a comment

Choose a reason for hiding this comment

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

+1 for adapting to Java 8

@@ -81,4 +86,12 @@ private boolean isConfigurationReady() {
return configuration != null && configuration.getSshHostname() != null && configuration.getSshUsername() != null
&& configuration.getSshPrivateKey() != null && configuration.getSshPrivateKey().exists();
}

Copy link

Choose a reason for hiding this comment

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

Seems like duplicated code. What about adding configuration as argument and making the method static?
Another option is to add it as a default method to GerritConfiguration.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for found it. I hope, the better review interface and set it as static method.
Now as workaround I have migrated into imp class, and define method in interface.
Yes, it is old way, but it does not duplicate of code :)

@gonchik
Copy link
Author

gonchik commented Mar 12, 2019

Hi @jhansche ,
Please, have a look that PR.
I will be happy if you provide some feedback.

Cheers,
Gonchik Tsymzhitov

@gonchik gonchik changed the title Small polish and adapt for Java 8 mostly helps for the Jira 7 releases Small polish and performance improvements Mar 17, 2019
@gonchik gonchik mentioned this pull request Jun 2, 2019
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.

3 participants