Skip to content

Commit

Permalink
Update to DateSerializer and new LocaleSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
serverperformance committed Jan 5, 2014
1 parent 9f7fb4d commit 8daf628
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ private Date create(Kryo kryo, Class<?> type, long time) throws KryoException {
}
// other cases, reflection
try {
// Try to avoid invoking the no-args constructor
// (which is expected to initialize the instance with the current time)
Constructor constructor = type.getDeclaredConstructor(long.class);
if (constructor!=null) {
if (!constructor.isAccessible()) {
Expand Down

0 comments on commit 8daf628

Please sign in to comment.