[Cuis-dev] ExtractMethod duplicates finder fix

Hernán Wilkinson hernan.wilkinson at 10pines.com
Sat Sep 26 07:44:41 PDT 2026


Hi,
 Attached is a fix for when the receiver is an instance variable while
looking for duplicates.
 A duplicate was found in this code:
---
isHoliday: aPotentialHoliday

^ ( weekdayHolidays includes: aPotentialHoliday day) or: [
 monthdayHolidays includes: aPotentialHoliday dayOfMonth ]
---
 when extracting `weekdayHolidays includes: aPotentialHoliday day`, but the
generated method did not parameterize the receiver.

 The fix includes  its tests too.

Cheers
HErnan.
-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260926/c5f80d91/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnsavedChangesTo-RefactoringTests-HAW.026.cs.st
Type: application/octet-stream
Size: 2431 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260926/c5f80d91/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8196-ExtractMethodInstVarReceiverFix-HernanWilkinson-2026Sep22-21h41m-HAW.001.cs.st
Type: application/octet-stream
Size: 5771 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260926/c5f80d91/attachment-0001.obj>


More information about the Cuis-dev mailing list