Hello everybody,

Well, it's maybe not actually a bug, but I was playing with "pull member up"
refactoring. It's just really great.
But I have a question about it and was wondering whether it was a bug, or
just simply a misunderstanding from me.

I have an interface, and I have a class that implements this interface.
I created a new method in my class, and then decided to pull this new method
up inside the interface.
So I had the following method :

public String[] getWords()
{
    return (String[])commonWords.toArray(new String[commonWords.size()]);
}

I refactored it with "pull member up". And I got that in my interface :

String[] getWords();

Why isn't it declared public like in my implementing class ?
Is a bug ? I wonder why the visibility is not the same.

Guillaume


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to