diff options
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigration/t05/after/test.java')
-rw-r--r-- | java/typeMigration/testData/refactoring/typeMigration/t05/after/test.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigration/t05/after/test.java b/java/typeMigration/testData/refactoring/typeMigration/t05/after/test.java new file mode 100644 index 000000000000..b74d13b84fda --- /dev/null +++ b/java/typeMigration/testData/refactoring/typeMigration/t05/after/test.java @@ -0,0 +1,22 @@ +/** + * Created by IntelliJ IDEA. + * User: db + * Date: Nov 15, 2004 + * Time: 5:40:02 PM + * To change this template use File | Settings | File Templates. + */ +public class Test { + int sum(Integer i, int j) { + return i + j; + } + + int[] foo(int n, int k) { + int[] a = new int[] {1, 2, 3, 4}; + + for (int i = 0; i < a.length; i++) { + a[i] = sum(i, k); + } + + return a; + } +} |