RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

Convert to static introduces unnecessary parameter for static field access in method

Open bexxx opened this issue 9 years ago • 1 comments

class C1 { private static int bar;

void Baz() { int x = bar; } }

Converting this method to static introduces a new parameter "instance" of type "C1" which is not needed.

bexxx avatar Aug 20 '16 18:08 bexxx

Expected: only an added static modifier.

bexxx avatar Aug 20 '16 18:08 bexxx