History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-26237
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Assignee: Andrey Simanovsky
Reporter: Thomas Eyde
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Use base class where possible misses the interfaces

Created: 06 Aug 06 18:26   Updated: 24 Oct 06 18:12
Component/s: None
Fix Version/s: 1.0, 2.0.2
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 249
Fixed in build: 262
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=26237


 Description  « Hide
When I have this method

public void TakeOver (ArrayList list)
{

}

And and select use base class..., ReSharper suggests System.Object, but none of the interfaces. Technically, an interface is not a base class, but it would be useful.



 All   Comments   Work Log   Change History      Sort Order:
Andrey Simanovsky - 09 Aug 06 15:41
Re: #26237- Use base class where possible misses the interfaces
The refactoring offers interfaces as a choice.
Perhaps, you want to replace references to ArrayList with an interface?

Thomas Eyde - 17 Sep 06 01:43
That's correct, I want to replace the references to ArrayList with IList.
It's still an issue in build 261. Are you going to reconcider this issue?

Andrey Simanovsky - 18 Sep 06 14:50
OK, I've figured out the problem. Actually, when you run "Use Base Type Where Possible..." on method TakeOver you change the references to the containing type. To change references of ArrayList you have to navigate to ArrayList and run the refactoring from there. However, in 261 it will not work, but in 262 it does.