Remove dead throws declarations for unchecked Jackson exceptions
Apache 2.0In Jackson 3 the exception hierarchy is rerooted under JacksonException, which extends RuntimeException. Any surviving throws for a Jackson exception type is dead: callers are not required to handle it, and the declaration misleads readers into thinking checked-exception handling is needed. Removes throws for JacksonException and its subtypes (e.g. DatabindException) from both methods and constructors. Assumes the Jackson 2 to 3 package changes have already run, so all Jackson exception types live under tools.jackson. Does not touch throws IOException (still a checked exception) or non-Jackson exception types.
org. openrewrite. java. jackson. RemoveDeadJacksonThrowsmod run . --recipe= org. openrewrite. java. jackson. RemoveDeadJacksonThrowsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.