Project
ReSharper
Priority
Show-stopper
Type
Bug
Fix versions
2.5.1, 3.0
State
Fixed
Assignee
Andrey Simanovsky
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Adam Vandenberg
    5 years ago (04 Dec 2006 22:16)
  • Updated by   Adam Vandenberg
    5 years ago (14 Dec 2006 20:49)
  • Jira: RSRP-32955
    (history, comments)
 
RSRP-32955 Invalid "Make method static" refactoring
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
This code:

class IP: BaseClass
{
...
private string GetBusinessID(Int64 id)
{
            return Load<IP>(id).IPBusID;
}
...
}

is incorrectly made static.
("Load" is a static method defined in BaseClass.)

Resulting method:

class IP: BaseClass
{
...
private static string GetBusinessID(IP ip, Int64 id)
{
 return ip.Load(id)
.IPBusID;
}
...
}


The "IP" parameter should not have been added in this case.

I can upload a .sln for this if you want.

Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments