This commit is contained in:
Rick Parker 2017-09-04 16:21:58 +01:00 committed by GitHub
parent 0e250e9279
commit 015483656a

View File

@ -137,7 +137,7 @@ class DeserializationInput(internal val serializerFactory: SerializerFactory) {
// Store the reference in case we need it later on.
// Skip for primitive types as they are too small and overhead of referencing them will be much higher than their content
if (type.asClass()?.isPrimitive != true) objectHistory.add(objectRead)
if (suitableForObjectReference(objectRead.javaClass)) objectHistory.add(objectRead)
objectRead
}