"Introduce Type Parameter"

Is there a refactoring, or intention that would turn


public class StringFoo {
public String getFirst () {
return null;
}
}

into

public class Foo]]> {
public T getFirst () {
return null;
}
}


Alain

4 comments
Comment actions Permalink

Wasn't a "Eugene" talking about such a refactoring lately?

Tom

0
Comment actions Permalink

He was talking about the converse, "Inline Type Parameter", but I mentioned "Introduce" in the thread. I think "Introduce" is the more valuable of the two, but that both are worth supporting.

--Dave Griffith

0
Comment actions Permalink

But to actually answer Alain's question, no, there is currently no such automation in either the product or any plugin that I'm aware of.

--Dave Griffith

0
Comment actions Permalink

posted:

"new refactoring: Introduce Type Parameter"
http://www.jetbrains.net/jira/browse/IDEA-1757

0

Please sign in to leave a comment.