Browse Source
We now avoid using a Lambda to provide a default ObjectMapper instance in the code that's reflectively guarded against Jackson not being present. The lambda causes a method to be generated for the class that will require ObjectMapper to be present on reflection inspection of that method. Switching to a method reference to ObjectMapper's constructor resolves that problem as the indirection via the additional, offending method is not needed. Further reading: https://www.javabullets.com/how-lambdas-and-anonymous-inner-classesaic-work/pull/310/merge
2 changed files with 20 additions and 3 deletions
Loading…
Reference in new issue