misc: Increase portability and initialize at most once
Use the custom "^self basicNew initialize" to create and initialize the object.
This commit is contained in:
parent
9279ed70c1
commit
9cf469c261
|
@ -24,9 +24,7 @@ Collection subclass: MessageBuffer [
|
|||
|
||||
MessageBuffer class >> new [
|
||||
<category: 'creation'>
|
||||
^ (super new)
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
initialize [
|
||||
|
|
|
@ -64,9 +64,7 @@ Object subclass: TLVDescription [
|
|||
|
||||
new [
|
||||
<category: 'creation'>
|
||||
^ super basicNew
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
]
|
||||
|
||||
|
|
|
@ -24,9 +24,7 @@ Object subclass: IPADispatcher [
|
|||
|
||||
IPADispatcher class >> new [
|
||||
<category: 'creation'>
|
||||
^ super new
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
initialize [
|
||||
|
|
|
@ -107,8 +107,7 @@ Object subclass: StructCreator [
|
|||
]
|
||||
|
||||
StructCreator class >> new [
|
||||
^ super new
|
||||
initialize
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
initialize [
|
||||
|
|
|
@ -39,9 +39,7 @@ a single ASP to send one ASPActive for one interface at a time.'>
|
|||
]
|
||||
|
||||
M2UAApplicationServerProcess class >> new [
|
||||
^super new
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
onError: aBlock [
|
||||
|
|
|
@ -34,9 +34,7 @@ This class is currently not used!'>
|
|||
]
|
||||
|
||||
M2UAAspStateMachine class >> new [
|
||||
^(self basicNew)
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
entered: aState [
|
||||
|
|
|
@ -24,9 +24,7 @@ Object subclass: OsmoUDPSocket [
|
|||
|
||||
OsmoUDPSocket class >> new [
|
||||
<category: 'creation'>
|
||||
^ super new
|
||||
initialize;
|
||||
yourself
|
||||
^self basicNew initialize
|
||||
]
|
||||
|
||||
initialize [
|
||||
|
|
Reference in New Issue