Skip to content

Commit

Permalink
Make JacksonModule more flexible.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Apr 22, 2019
1 parent 3c818b7 commit 04ce8d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public void bindMappers()

log.info("Installing JacksonModule " + className);

Class<? extends JacksonModule> clazz = (Class<? extends JacksonModule>) Class.forName(className);
Class<? extends AbstractModule> clazz = (Class<? extends AbstractModule>) Class.forName(className);

JacksonModule module = clazz.newInstance();
AbstractModule module = clazz.newInstance();

install(module);

Expand Down

0 comments on commit 04ce8d3

Please sign in to comment.