Skip to content

Commit

Permalink
revert back to method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed May 14, 2024
1 parent 9ad5ce5 commit b3d23a6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ private static void registerStringConversions() {
throw new MappingException("Could not convert String to char: " + s);
}
});
register(Class.class, String.class, aClass -> {
return aClass.getName();
});
register(Class.class, String.class, Class::getName);
register(String.class, Class.class, className -> {
try {
return Thread.currentThread().getContextClassLoader().loadClass(className);
Expand Down

0 comments on commit b3d23a6

Please sign in to comment.