Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I see you removed Class<? super T>, however, Class<? extends T> might actually be useful. I haven't thought it through enough to determine if it would have any utility when casting toObject as a method reference. Commented Sep 23, 2019 at 4:31
  • No need to cast the result of mapper.readValue(). It's already generic. Commented Sep 23, 2019 at 4:35
  • @Robby Cornelissen Thanks alot! Answer has been fixed. Commented Sep 23, 2019 at 5:13