< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/Person.java

Print this page

        

@@ -28,24 +28,24 @@
     final int    id;
     final String firstName;
     final String lastName;
 
     private Person() {
-        this.id = 0;
-        this.firstName = null;
-        this.lastName = null;
+        id = 0;
+        firstName = null;
+        lastName = null;
     }
 
     public int getId() { return id; }
     public String getFirstName() { return firstName; }
     public String getLastName() { return lastName; }
 
     public String toString() {
         return getFirstName() + " " + getLastName() + " (id=" + getId() + ")";
     }
 
-    __ValueFactory static Person create(int id, String firstName, String lastName) {
+    static Person create(int id, String firstName, String lastName) {
         Person p = __MakeDefault Person();
         p.id = id;
         p.firstName = firstName;
         p.lastName = lastName;
         return p;
< prev index next >