Avoid serializing non-serializable properties (EA-253232)
This commit is contained in:
+2
-1
@@ -76,7 +76,8 @@ open class PropertiesCollection(protected var properties: Map<Key<*>, Any?> = em
|
||||
|
||||
fun entries(): Set<Map.Entry<Key<*>, Any?>> = properties.entries
|
||||
|
||||
val notTransientData: Map<Key<*>, Any?> get() = properties.filterKeys { it !is TransientKey<*> }
|
||||
val notTransientData: Map<Key<*>, Any?>
|
||||
get() = properties.filter { (key, value) -> key !is TransientKey<*> && value is Serializable }
|
||||
|
||||
fun isEmpty(): Boolean = properties.isEmpty()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user