comparison graal/com.oracle.max.base/src/com/sun/max/collect/HashEquality.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
46 return 0; 46 return 0;
47 } 47 }
48 return object.hashCode(); 48 return object.hashCode();
49 } 49 }
50 50
51 private static final HashEquality equality = new HashEquality<Object>(); 51 private static final HashEquality equality = new HashEquality<>();
52 52
53 public static <T> HashEquality<T> instance(Class<HashEquality<T>> type) { 53 public static <T> HashEquality<T> instance(Class<HashEquality<T>> type) {
54 return Utils.cast(type, equality); 54 return Utils.cast(type, equality);
55 } 55 }
56 } 56 }