In the code below, when I try to extract "0" as a constructor parameter, it only offers "i" as a suggestion for the parameter name.
It should also offer the name of the field to which I'm assigning "0", as that's a common case for constructor parameters.
It could potentially also apply to method parameters, though this is less clear cut.
public class Temp
{
privateint value;
public Temp()
{
value = 0;
}
}
Description
In the code below, when I try to extract "0" as a constructor parameter, it only offers "i" as a suggestion for the parameter name.
It should also offer the name of the field to which I'm assigning "0", as that's a common case for constructor parameters.
It could potentially also apply to method parameters, though this is less clear cut.
public class Temp
{
privateint value;
public Temp()
{
value = 0;
}
}