X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Robust%2Fsrc%2FClassLibrary%2FObjectJavaNT.java;fp=Robust%2Fsrc%2FClassLibrary%2FObjectJavaNT.java;h=0000000000000000000000000000000000000000;hb=refs%2Ftags%2Fbuildscript;hp=2d768eb668defaf4e6f41265af38f4cf8730da20;hpb=b9409d3de6972067daf6d5deade80fca0d37a995;p=IRC.git diff --git a/Robust/src/ClassLibrary/ObjectJavaNT.java b/Robust/src/ClassLibrary/ObjectJavaNT.java deleted file mode 100644 index 2d768eb6..00000000 --- a/Robust/src/ClassLibrary/ObjectJavaNT.java +++ /dev/null @@ -1,28 +0,0 @@ -public class Object { - public int cachedCode; //first field has to be a primitive - public boolean cachedHash; - - public native int nativehashCode(); - - 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(); - - public String toString() { - return "Object"+hashCode(); - } - - public boolean equals(Object o) { - if (o==this) - return true; - return false; - } -}