diff options
Diffstat (limited to 'java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged')
3 files changed, 24 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/Test.items b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/Test.items new file mode 100644 index 000000000000..fe9d55b37cda --- /dev/null +++ b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/Test.items @@ -0,0 +1,10 @@ +Types: +PsiMethodCallExpression:p.add(new Integer(8)) : boolean +PsiParameter:p : java.util.Set<? super java.lang.Integer> +PsiReferenceExpression:p : java.util.Set<? super java.lang.Integer> + +Conversions: +p.add(new Integer(8)) -> $ + +New expression type changes: +Fails: diff --git a/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/test.java b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/test.java new file mode 100644 index 000000000000..25825f1f78c0 --- /dev/null +++ b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/after/test.java @@ -0,0 +1,7 @@ +import java.util.*; + +class Test { + void method(Set<? super Integer> p) { + p.add(new Integer(8)); + } +}
\ No newline at end of file diff --git a/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/before/test.java b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/before/test.java new file mode 100644 index 000000000000..d8cf544f6fde --- /dev/null +++ b/java/typeMigration/testData/refactoring/wildcard/producerCollectionChanged/before/test.java @@ -0,0 +1,7 @@ +import java.util.*; + +class Test { + void method(ArrayList<? super Number> p) { + p.add(new Integer(8)); + } +}
\ No newline at end of file |