diff --git a/src/Famix2Java/FAMIX2JavaVisitor.class.st b/src/Famix2Java/FAMIX2JavaVisitor.class.st index 7030f70..eede034 100644 --- a/src/Famix2Java/FAMIX2JavaVisitor.class.st +++ b/src/Famix2Java/FAMIX2JavaVisitor.class.st @@ -261,6 +261,17 @@ FAMIX2JavaVisitor >> printMethodAnnotations: aMethod [ self eol ] ] +{ #category : #accessing } +FAMIX2JavaVisitor >> printStatementBlockOf: aMethod [ + + self << ' {'. + self eol. + self << aMethod bodySourceText. + self + eol; + <<| '}' +] + { #category : #accessing } FAMIX2JavaVisitor >> reset [ tabs := 0. @@ -466,13 +477,7 @@ FAMIX2JavaVisitor >> visitMethod: aMethod [ (aMethod parentType isInterface or: [ aMethod isAbstract isNotNil and: [ aMethod isAbstract ] ]) ifTrue: [ self << ';' ] - ifFalse: [ - self << ' {'. - self eol. - self << aMethod bodySourceText. - self - eol; - <<| '}' ] + ifFalse: [ self printStatementBlockOf: aMethod ] ] { #category : #visiting }