-
Notifications
You must be signed in to change notification settings - Fork 88
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
Static analysis spotbugs #458
Conversation
f930cdf
to
85f3469
Compare
85f3469
to
60d85d3
Compare
60d85d3
to
b204d3f
Compare
@@ -85,8 +85,13 @@ public void setSchemaVersion(SpecVersion.VersionFlag version) { | |||
* @param <T> Must extends {@link BaseFunction} | |||
*/ | |||
public <T extends BaseFunction> void addFunction(T function) { | |||
configuration.functionRegistry().extend(function); | |||
jmesPath = new JacksonRuntime(configuration, getObjectMapper()); | |||
FunctionRegistry functionRegistryWithExtendedFunctions = configuration.functionRegistry().extend(function); |
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.
This was a neat finding and was actually a bug
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.
👍
|
||
if (schema.startsWith(CLASSPATH)) { | ||
String filePath = schema.substring(CLASSPATH.length()); | ||
try (InputStream schemaStream = ValidationAspect.class.getResourceAsStream(filePath)) { |
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.
This too
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.
👍
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.
👍
Issue #, if available:
Description of changes:
It will display failed checks like this. PR fixes all the spotbugs identified issues as well.
Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.