Skip to content

Commit

Permalink
Importer: fix Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiovandewaeter committed May 2, 2024
1 parent 1319bd5 commit c1e9d49
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Famix-Value-Importer/Boolean.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -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 [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, MyClass>"
Expand Down

0 comments on commit c1e9d49

Please sign in to comment.