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

PAYARA-2545 upgrade microprofile config to 1.2.1 #2587

Merged
merged 4 commits into from May 21, 2018

Conversation

smillidge
Copy link
Contributor

No description provided.

@smillidge
Copy link
Contributor Author

jenkins test

@payara-ci
Copy link
Contributor

Quick build and test passed!

@lprimak lprimak changed the title Payara 2545 upgrade microprofile config to 1.2.1 PAYARA-2545 upgrade microprofile config to 1.2.1 Apr 23, 2018
public Class convert(String string) {
if (string == null || string.equals(ConfigProperty.UNCONFIGURED_VALUE)) return null;
try {
return Class.forName(string,true,Thread.currentThread().getContextClassLoader());
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Use Utility.getClassLoader()/Utility.setContextClassLoader() as it works correctly w/Security Manager
    Spaces between commas (string, true, etc)
    Make parameter meaningful

return result;
}

private Object convertViaConstructor(String string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

meaningful parameter / result variable name

Object result = null;
try {
// need to do common sense reflected conversion
Method method = clazz.getMethod("parse",CharSequence.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

spaces

try {
// need to do common sense reflected conversion
Method method = clazz.getMethod("parse",CharSequence.class);
result = method.invoke(null,string);
Copy link
Contributor

Choose a reason for hiding this comment

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

spaces

@smillidge
Copy link
Contributor Author

jenkins test

1 similar comment
@arjantijms
Copy link
Contributor

jenkins test

@payara-ci
Copy link
Contributor

Quick build and test passed!

@arjantijms arjantijms self-requested a review May 21, 2018 21:39
@arjantijms arjantijms dismissed lprimak’s stale review May 21, 2018 21:40

Issues seem all addressed

@arjantijms arjantijms merged commit 4697ae4 into payara:master May 21, 2018
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.

None yet

6 participants