1 package annotations.tests.classfile.cases; 2 3 import java.util.ArrayList; 4 import java.util.HashMap; 5 import java.util.HashSet; 6 7 public class TestObjectCreation { 8 public Object o; 9 test()10 public void test() { 11 o = new Object(); 12 o = new String(); 13 o = new String(""); 14 } 15 test2()16 public void test2() { 17 o = "str"; 18 o = new ArrayList(); 19 } 20 test3()21 public void test3() { 22 o = new HashSet(); 23 o = new HashMap(); 24 } 25 test4()26 public void test4() { 27 o = new Integer(2); 28 o = new TestObjectCreation(); 29 } 30 } 31