mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
Fix bad merge bdb87e38ca
(#1411)
This commit is contained in:
parent
0e250e9279
commit
015483656a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user