extract class: leave reference parameters untouched after replacement (IDEA-106017)

This commit is contained in:
anna
2013-04-23 16:17:41 +02:00
parent 35e1d2df1d
commit 1b0f032a13
5 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
public class Extracted {
public static <T> T foo() {
return null;
}
}

View File

@@ -0,0 +1,6 @@
class Test {
{
String s = true ? Extracted.<String>foo() : "";
}
}

View File

@@ -0,0 +1,7 @@
class Test {
public static <T> T foo() { return null; }
{
String s = true ? Test.<String>foo() : "";
}
}