summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java')
-rw-r--r--java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java b/java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java
new file mode 100644
index 000000000000..7e3eeb9770ca
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/migrateTypeSignature/typeGenAncestor2Lvalue/after/Type.java
@@ -0,0 +1,40 @@
+import java.util.Collection;
+import java.util.Set;
+
+interface Ancestor {}
+interface Subject extends Ancestor {}
+class Descendant implements Subject {}
+
+class Type {
+ private Set<Subject> myAncestors;
+ private Set<? extends Ancestor> myAncestorExtends;
+ private Set<Subject> myAncestorSupers;
+
+ private Set<Subject> mySubjects;
+ private Set<? extends Subject> mySubjectExtends;
+ private Set<? super Subject> mySubjectSupers;
+
+ private Set<Subject> myDescendants;
+ private Set<Subject> myDescendantExtends;
+ private Set<? super Descendant> myDescendantSupers;
+
+ private Set mySet;
+ private Collection<Subject> myCollection;
+
+ public void meth(Set<Subject> p) {
+ myAncestors = p;
+ myAncestorExtends = p;
+ myAncestorSupers = p;
+
+ mySubjects = p;
+ mySubjectExtends = p;
+ mySubjectSupers = p;
+
+ myDescendants = p;
+ myDescendantExtends = p;
+ myDescendantSupers = p;
+
+ mySet = p;
+ myCollection = p;
+ }
+}