summaryrefslogtreecommitdiff
path: root/java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java')
-rw-r--r--java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java b/java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java
new file mode 100644
index 000000000000..bfae5390508e
--- /dev/null
+++ b/java/typeMigration/testData/refactoring/migrateTypeSignature/exprNewArrayReftype2Lvalue/after/Expr.java
@@ -0,0 +1,13 @@
+interface FaceParent {}
+interface FaceChild extends FaceParent {}
+class ClassParent implements FaceChild {}
+class ClassChild extends ClassParent {}
+
+class Expr {
+ private FaceParent[] myArrayOne;
+ private FaceParent[][] myArrayTwo;
+ public void meth(FaceParent pfc, ClassParent pcp, ClassChild pcc) {
+ myArrayOne = new FaceParent[]{pfc, pcp, pcc};
+ myArrayTwo = new FaceParent[][]{{pfc}, {pcp}, {pcc}};
+ }
+}