Skip to content

Commit

Permalink
Recognize all primitive wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed Apr 3, 2024
1 parent 684b923 commit 40f2177
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Famix-Value-Importer/FamixJavaClass.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Extension { #name : #FamixJavaClass }

{ #category : #'*Famix-Value-Importer' }
FamixJavaClass >> isPrimitiveWrapper [

^ #( Integer Float Double Long Short Byte Boolean Character )
includes: name
]
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ FamixValueJavaJacksonImporter >> importValueFromList: rawValue of: type [
FamixValueJavaJacksonImporter >> isPrimitiveType: type [

^ type isPrimitiveType or: [ "Classes wrapping primitives are also considered primitives."
#( Integer Float Double Long Short Byte ) includes: type name ]
type isPrimitiveWrapper ]
]

{ #category : #parsing }
Expand Down

0 comments on commit 40f2177

Please sign in to comment.