Change tabbing for everything....
[IRC.git] / Robust / src / ClassLibrary / ObjectJava.java
index 82b1ef68cc4894891c86049a89b6b627d5c7aa23..a9bf6f4dc8e573ec939704ea272b8fdc5aa6827c 100644 (file)
@@ -1,33 +1,33 @@
 public class Object {
-    public int cachedCode;
-    public boolean cachedHash;
+  public int cachedCode;   //first field has to be a primitive
+  public boolean cachedHash;
 
-    public native int nativehashCode();
-    private Object nextlockobject;
-    private Object prevlockobject;
+  public native int nativehashCode();
+  private Object nextlockobject;
+  private Object prevlockobject;
 
-    public int hashCode() {
-       if (!cachedHash) {
-           cachedCode=nativehashCode();
-           cachedHash=true;
-       }
-       return cachedCode;
+  public int hashCode() {
+    if (!cachedHash) {
+      cachedCode=nativehashCode();
+      cachedHash=true;
     }
+    return cachedCode;
+  }
 
-    /* DON'T USE THIS METHOD UNLESS NECESSARY */
-    /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
-    public native int getType();
+  /* DON'T USE THIS METHOD UNLESS NECESSARY */
+  /* WE WILL DEPRECATE IT AS SOON AS INSTANCEOF WORKS */
+  public native int getType();
 
-    public native int MonitorEnter();
-    public native int MonitorExit();
+  public native int MonitorEnter();
+  public native int MonitorExit();
 
-    public String toString() {
-       return String.valueOf(this);
-    }
+  public String toString() {
+    return "Object"+hashCode();
+  }
 
-    public boolean equals(Object o) {
-       if (o==this)
-           return true;
-       return false;
-    }
+  public boolean equals(Object o) {
+    if (o==this)
+      return true;
+    return false;
+  }
 }