exceptionfactory commented on code in PR #9660:
URL: https://github.com/apache/nifi/pull/9660#discussion_r1927643706


##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ValidateJson.java:
##########
@@ -199,7 +213,7 @@ public String getDescription() {
         REL_FAILURE
     );
 
-    private static final ObjectMapper MAPPER = new 
ObjectMapper().configure(JsonParser.Feature.ALLOW_COMMENTS, true);
+    private ObjectMapper MAPPER;

Review Comment:
   Thanks @dan-s1. This does result in creating an instance of `ObjectMapper` 
per Processor instance, but since it is created in `onScheduled` it is the 
correct place for initialization.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to