Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Clarify Class.forName for SimpleConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
labianchin committed Jun 19, 2018
1 parent aba7bc1 commit 4653d7f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -131,6 +131,7 @@ private static Kryo getKryo() {
PackageRegistrar.all().apply(kryo);
kryo.register(java.lang.invoke.SerializedLambda.class);
try {
// SimpleConfig is a package private class, hence using Class.forName to reference it
kryo.register(Class.forName("com.typesafe.config.impl.SimpleConfig"), new ConfigSerializer());
} catch (ClassNotFoundException e) {
LOG.debug("ConfigSerializer not registered", e);
Expand Down

0 comments on commit 4653d7f

Please sign in to comment.