mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-15 20:09:19 +00:00
Update: Simplify serialize and deserialize for data objects (Repository, Product & ProductItem)
This commit is contained in:
@ -74,7 +74,10 @@ class IndexMerger(file: File) : Closeable {
|
||||
val description = it.getString(0)
|
||||
val product = Json.factory.createParser(it.getBlob(1)).use {
|
||||
it.nextToken()
|
||||
Product.deserialize(repositoryId, description, it)
|
||||
Product.deserialize(it).apply {
|
||||
this.repositoryId = repositoryId
|
||||
this.description = description
|
||||
}
|
||||
}
|
||||
val releases = it.getBlob(2)?.let {
|
||||
Json.factory.createParser(it).use {
|
||||
|
Reference in New Issue
Block a user