Skip to content

Commit

Permalink
just some trivial cleanups:
Browse files Browse the repository at this point in the history
- MetacelloAbstractConstructor>#visited
- TextTest examples
  • Loading branch information
MarcusDenker committed Apr 30, 2020
1 parent fcf83dc commit 2ca1c03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/Metacello-Core/MetacelloVersionValidator.class.st
Expand Up @@ -677,8 +677,7 @@ MetacelloVersionValidator >> validationReport: anObject [
{ #category : #accessing }
MetacelloVersionValidator >> visited [

visited == nil ifTrue: [ visited := IdentitySet new ].
^visited
^ visited ifNil: [ visited := IdentitySet new ]
]

{ #category : #accessing }
Expand Down
23 changes: 8 additions & 15 deletions src/Text-Tests/TextTest.class.st
Expand Up @@ -14,28 +14,21 @@ Class {
{ #category : #examples }
TextTest >> example1: size [
<sampleInstance>

| ts mytext |
ts := TextStream on: (Text new: size).
ts
^(TextStream on: (Text new: size))
nextPutAll: 'xxxxx' asText;
nextPutAll: 'yyyyy' asText allBold;
nextPutAll: 'zzzzzzz' asText.
mytext := ts contents.
^ mytext
nextPutAll: 'zzzzzzz' asText;
contents
]

{ #category : #examples }
TextTest >> example2 [
<sampleInstance>

| ts myText |
ts := TextStream on: (Text new: 50).
ts nextPutAll: 'abc' asText.
ts nextPutAll: 'def' asText allBold.
ts nextPutAll: 'ghijk' asText.
myText := ts contents.
^ myText
^(TextStream on: (Text new: 50))
nextPutAll: 'abc' asText;
nextPutAll: 'def' asText allBold;
nextPutAll: 'ghijk' asText;
contents
]

{ #category : #examples }
Expand Down

0 comments on commit 2ca1c03

Please sign in to comment.