mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
create field from parameter: all erase unavailable type params (IDEA-56163)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test{
|
||||
private final List<String> myP1;
|
||||
|
||||
<T extends String> void f(List<T> p1){
|
||||
myP1 = p1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test<T>{
|
||||
private final List<T> myP1;
|
||||
|
||||
void f(List<T> p1){
|
||||
myP1 = p1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test{
|
||||
private final List<Object> myP1;
|
||||
|
||||
<T> void f(List<T> p1){
|
||||
myP1 = p1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test{
|
||||
<T extends String> void f(List<T> p<caret>1){
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test<T>{
|
||||
void f(List<T> p<caret>1){
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Field For Parameter 'p1'" "true"
|
||||
|
||||
import java.util.*;
|
||||
class Test{
|
||||
<T> void f(List<T> p<caret>1){
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user