Skip to content

Commit 89b5763

Browse files
committed
follow famix2Java style
1 parent 486dbef commit 89b5763

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Carrefour-Exporter/CRFExporter.class.st

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ CRFExporter >> visitMethod: aMethod [
1414
aMethod isStub ifTrue: [ ^ self ].
1515
self printMethodAnnotations: aMethod.
1616
self indent.
17-
aMethod isPrivate ifTrue: [ self <<< 'private ' ].
18-
aMethod isProtected ifTrue: [ self <<< 'protected ' ].
19-
aMethod isPublic ifTrue: [ self <<< 'public ' ].
20-
aMethod isClassSide ifTrue: [ self <<< 'static ' ].
17+
aMethod isPrivate ifTrue: [ self << 'private ' ].
18+
aMethod isProtected ifTrue: [ self << 'protected ' ].
19+
aMethod isPublic ifTrue: [ self << 'public ' ].
20+
aMethod isClassSide ifTrue: [ self << 'static ' ].
2121
"Printing return type for method"
2222
aMethod declaredType ifNotNil: [ :declaredType |
2323
self printDeclaredType: declaredType.
@@ -27,28 +27,28 @@ CRFExporter >> visitMethod: aMethod [
2727
aMethod isAnInitializer and: [ aMethod isConstructor not ] ])
2828
ifFalse: [
2929
self
30-
<<< aMethod name;
31-
<<< '('.
30+
<< aMethod name;
31+
<< '('.
3232
(aMethod parameters sorted: [ :p :p2 |
3333
p sourceAnchor startPos < p2 sourceAnchor startPos ])
3434
do: [ :parameter | parameter accept: self clone ]
35-
separatedBy: [ self <<< ', ' ].
36-
self <<< ')' ]
35+
separatedBy: [ self << ', ' ].
36+
self << ')' ]
3737
ifTrue: [ self << 'static' ].
3838
"print exception"
3939
((aMethod withMethodsOverriding collect: [ :m |
4040
m thrownExceptions , m declaredExceptions ]) flattened asSet
4141
asOrderedCollection sorted: #name ascending) ifNotEmpty: [
4242
:exceptions |
43-
self <<< ' throws '.
43+
self << ' throws '.
4444
exceptions
45-
do: [ :exception | self <<< exception name ]
46-
separatedBy: [ self <<< ', ' ] ].
45+
do: [ :exception | self << exception name ]
46+
separatedBy: [ self << ', ' ] ].
4747

4848
"Printing body of method if class is not abstract or an interface"
4949
((aMethod atScope: FamixTClass) anyOne isInterface or: [
5050
aMethod isAbstract isNotNil and: [ aMethod isAbstract ] ])
51-
ifTrue: [ self <<< ';' ]
51+
ifTrue: [ self << ';' ]
5252
ifFalse: [
5353
aMethod fast
5454
ifNotNil: [ :fastMethod |
@@ -57,14 +57,14 @@ CRFExporter >> visitMethod: aMethod [
5757
outputStream: self currentStream;
5858
indentSize: tabulationSize;
5959
yourself.
60-
self <<< ' '.
60+
self << ' '.
6161
1 to: tabs do: [ :tab | fastJavaExporterVisitor indent ].
6262
fastMethod statementBlock accept: fastJavaExporterVisitor ]
6363
ifNil: [
64-
currentStream << ' {'.
64+
self << ' {'.
6565
self eol.
66-
self <<< aMethod bodySourceText.
66+
self << aMethod bodySourceText.
6767
self
6868
eol;
69-
<< '}' ] ]
69+
<<| '}' ] ]
7070
]

0 commit comments

Comments
 (0)