[squeak-dev] The Trunk: Kernel-mt.1255.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 13 07:51:45 UTC 2019


Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1255.mcz

==================== Summary ====================

Name: Kernel-mt.1255
Author: mt
Time: 13 August 2019, 9:51:39.168167 am
UUID: 61b26bb3-722e-9140-8302-5ef97eb9563e
Ancestors: Kernel-mt.1254

Speed up deprecation check on classes.

=============== Diff against Kernel-mt.1254 ===============

Item was added:
+ ----- Method: Class>>isDeprecated (in category 'testing') -----
+ isDeprecated
+ 	"Check for \d\d(Deprecated).* name. Optimized for speed. Accept false-positives if category cache is not valid anymore. See #category."
+ 	
+ 	^ ((category ifNil: [self category]) findString: 'Deprecated' startingAt: 3 caseSensitive: true) > 0!

Item was added:
+ ----- Method: ClassDescription>>category (in category 'organization') -----
+ category
+ 	"Answer the system organization category for the receiver."
+ 
+ 	^ self environment organization categoryOfElement: self name!

Item was changed:
  ----- Method: ClassDescription>>isDeprecated (in category 'testing') -----
  isDeprecated
+ 	"Check for \d\d(Deprecated).* name."
+ 	
+ 	^ (self category findString: 'Deprecated' startingAt: 3 caseSensitive: true) > 0!
- 
- 	^ self category includesSubstring: 'Deprecated'!



More information about the Squeak-dev mailing list