From c1e9d49760537ca94d88e9f6da8c3eb74f4e2122 Mon Sep 17 00:00:00 2001 From: fabiovandewaeter Date: Thu, 2 May 2024 16:43:13 +0200 Subject: [PATCH] Importer: fix Collection --- src/Famix-Value-Importer/Boolean.extension.st | 6 ++++++ .../FamixValuePharoJacksonImporter.class.st | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/Famix-Value-Importer/Boolean.extension.st b/src/Famix-Value-Importer/Boolean.extension.st index 300ad9f..9d7b85c 100644 --- a/src/Famix-Value-Importer/Boolean.extension.st +++ b/src/Famix-Value-Importer/Boolean.extension.st @@ -6,6 +6,12 @@ Boolean >> asJavaJacksonValueOn: importer [ ^ importer importPrimitive: self of: 'boolean' ] +{ #category : #'*Famix-Value-Importer' } +Boolean >> asPharoJacksonValueOn: importer [ + + ^ importer importPrimitive: self of: self className +] + { #category : #'*Famix-Value-Importer' } Boolean >> asPharoSTONValueOn: importer [ diff --git a/src/Famix-Value-Importer/FamixValuePharoJacksonImporter.class.st b/src/Famix-Value-Importer/FamixValuePharoJacksonImporter.class.st index 7917a54..0516baa 100644 --- a/src/Famix-Value-Importer/FamixValuePharoJacksonImporter.class.st +++ b/src/Famix-Value-Importer/FamixValuePharoJacksonImporter.class.st @@ -63,6 +63,15 @@ FamixValuePharoJacksonImporter >> importClassReference: rawValue of: type [ type: type ] +{ #category : #importing } +FamixValuePharoJacksonImporter >> importCollection: rawValue of: type [ + + ^ objectDict + at: rawValue first + ifAbsentPut: [ + super importCollection: rawValue allButFirst of: type ] +] + { #category : #importing } FamixValuePharoJacksonImporter >> importDictionary: rawValue of: type [ "infer from type arguments, e.g. Map"