From 9905900577da69e8f8fd32d00841e3454e016a5e Mon Sep 17 00:00:00 2001 From: Gabriel Darbord Date: Mon, 15 Apr 2024 16:14:53 +0200 Subject: [PATCH] Move `needsJavaImport` method to Famix-Value project --- .../FamixJavaParameterType.extension.st | 7 ------- .../FamixJavaPrimitiveType.extension.st | 7 ------- src/Famix-UnitTest-Exporter/FamixJavaType.extension.st | 7 ------- .../FamixValueUnknownType.extension.st | 8 -------- 4 files changed, 29 deletions(-) delete mode 100644 src/Famix-UnitTest-Exporter/FamixJavaParameterType.extension.st delete mode 100644 src/Famix-UnitTest-Exporter/FamixJavaPrimitiveType.extension.st delete mode 100644 src/Famix-UnitTest-Exporter/FamixJavaType.extension.st diff --git a/src/Famix-UnitTest-Exporter/FamixJavaParameterType.extension.st b/src/Famix-UnitTest-Exporter/FamixJavaParameterType.extension.st deleted file mode 100644 index 020e80f..0000000 --- a/src/Famix-UnitTest-Exporter/FamixJavaParameterType.extension.st +++ /dev/null @@ -1,7 +0,0 @@ -Extension { #name : #FamixJavaParameterType } - -{ #category : #'*Famix-UnitTest-Exporter' } -FamixJavaParameterType >> needsJavaImport [ - - ^ false -] diff --git a/src/Famix-UnitTest-Exporter/FamixJavaPrimitiveType.extension.st b/src/Famix-UnitTest-Exporter/FamixJavaPrimitiveType.extension.st deleted file mode 100644 index 8d34940..0000000 --- a/src/Famix-UnitTest-Exporter/FamixJavaPrimitiveType.extension.st +++ /dev/null @@ -1,7 +0,0 @@ -Extension { #name : #FamixJavaPrimitiveType } - -{ #category : #'*Famix-UnitTest-Exporter' } -FamixJavaPrimitiveType >> needsJavaImport [ - - ^ false -] diff --git a/src/Famix-UnitTest-Exporter/FamixJavaType.extension.st b/src/Famix-UnitTest-Exporter/FamixJavaType.extension.st deleted file mode 100644 index eff8152..0000000 --- a/src/Famix-UnitTest-Exporter/FamixJavaType.extension.st +++ /dev/null @@ -1,7 +0,0 @@ -Extension { #name : #FamixJavaType } - -{ #category : #'*Famix-UnitTest-Exporter' } -FamixJavaType >> needsJavaImport [ - - ^ typeContainer mooseName ~= 'java::lang' -] diff --git a/src/Famix-UnitTest-Exporter/FamixValueUnknownType.extension.st b/src/Famix-UnitTest-Exporter/FamixValueUnknownType.extension.st index 6e4ed45..3e7582b 100644 --- a/src/Famix-UnitTest-Exporter/FamixValueUnknownType.extension.st +++ b/src/Famix-UnitTest-Exporter/FamixValueUnknownType.extension.st @@ -5,11 +5,3 @@ FamixValueUnknownType >> mooseNameWithDots [ ^ name ] - -{ #category : #'*Famix-UnitTest-Exporter' } -FamixValueUnknownType >> needsJavaImport [ - - ^ ((name size = 6 or: [ - name size = 16 and: [ name beginsWith: 'java.lang.' ] ]) and: [ - name endsWith: 'Object' ]) not -]