eric-milles commented on code in PR #2330:
URL: https://github.com/apache/groovy/pull/2330#discussion_r2577914136


##########
subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/FastStringUtils.java:
##########
@@ -37,7 +37,7 @@ private static FastStringService loadService() {
 // that means you might need @GrabConfig(systemClassLoader=true) if getting 
json via grab
 //            ClassLoader rootLoader = 
DefaultGroovyMethods.getRootLoader(loader);
             ServiceLoader<FastStringServiceFactory> serviceLoader = 
ServiceLoader.load(FastStringServiceFactory.class);
-            FastStringService found = null;
+            FastStringService found = new DefaultFastStringService();

Review Comment:
   maybe defer creating the default until no factory produces one



-- 
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