comparison graal/com.oracle.max.base/src/com/sun/max/collect/HashIdentity.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
comparison
equal deleted inserted replaced
4141:04d21be7a24f 4142:bc8527f3071c
43 return 0; 43 return 0;
44 } 44 }
45 return System.identityHashCode(object); 45 return System.identityHashCode(object);
46 } 46 }
47 47
48 private static final HashIdentity identity = new HashIdentity<Object>(); 48 private static final HashIdentity identity = new HashIdentity<>();
49 49
50 public static <T> HashIdentity<T> instance(Class<HashIdentity<T>> type) { 50 public static <T> HashIdentity<T> instance(Class<HashIdentity<T>> type) {
51 return Utils.cast(type, identity); 51 return Utils.cast(type, identity);
52 } 52 }
53 } 53 }