Extract Interface Refactoring and Generics

Hello,

I have a class

class Foo {
}

and a collection

Collection foos; If I want to perform the refactoring "Extract Interface" with "rename orginal class and use interface where possible" IDEA 3489 do not notice the Collection. It produces following code: class FooImpl implements Foo { } Collection foos; I want a Collection]]>.

1 comment

You should file an issue at http://jetbrains.net/jira

Alexander Kiel wrote:

Hello,

I have a class

class Foo {
}

and a collection

Collection<Foo> foos;

If I want to perform the refactoring "Extract Interface" with "rename orginal class and use interface where possible" IDEA 3489 do not notice the Collection<Foo>. It produces following code:

class FooImpl implements Foo {
}

Collection<FooImpl> foos;

I want a Collection<Foo>.

0

Please sign in to leave a comment.