Skip to content

Commit 9c83ccc

Browse files
author
Roy Teeuwen
committed
GROOVY-11578: Provide a default service for when serviceloader is not working, like currently in OSGi context
1 parent d0540bc commit 9c83ccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subprojects/groovy-json/src/main/java/org/apache/groovy/json/internal/FastStringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static FastStringService loadService() {
4747
}
4848
}
4949
}
50-
return found;
50+
return found != null ? found : new DefaultFastStringService();
5151
}
5252
}
5353

0 commit comments

Comments
 (0)