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
Conversation
jenkins test |
Quick build and test passed! |
public Class convert(String string) { | ||
if (string == null || string.equals(ConfigProperty.UNCONFIGURED_VALUE)) return null; | ||
try { | ||
return Class.forName(string,true,Thread.currentThread().getContextClassLoader()); |
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.
- 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) { |
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.
meaningful parameter / result variable name
Object result = null; | ||
try { | ||
// need to do common sense reflected conversion | ||
Method method = clazz.getMethod("parse",CharSequence.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.
spaces
try { | ||
// need to do common sense reflected conversion | ||
Method method = clazz.getMethod("parse",CharSequence.class); | ||
result = method.invoke(null,string); |
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.
spaces
jenkins test |
1 similar comment
jenkins test |
Quick build and test passed! |
No description provided.