diff options
Diffstat (limited to 'java/typeMigration/testData/refactoring/typeMigration/t06/before/test.java')
-rw-r--r-- | java/typeMigration/testData/refactoring/typeMigration/t06/before/test.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/typeMigration/testData/refactoring/typeMigration/t06/before/test.java b/java/typeMigration/testData/refactoring/typeMigration/t06/before/test.java new file mode 100644 index 000000000000..862356ebd9cc --- /dev/null +++ b/java/typeMigration/testData/refactoring/typeMigration/t06/before/test.java @@ -0,0 +1,25 @@ +/** + * Created by IntelliJ IDEA. + * User: db + * Date: Nov 15, 2004 + * Time: 5:40:02 PM + * To change this template use File | Settings | File Templates. + */ +class A {} +class B {} + +public class Test { + A getA() { + return new A (); + } + + int foo() { + A a = getA (); + + if (a != null){ + return 0; + } + + return 1; + } +} |