--- old/src/share/classes/java/util/IdentityHashMap.java 2012-01-29 19:33:36.000000000 -0800 +++ new/src/share/classes/java/util/IdentityHashMap.java 2012-01-29 19:33:36.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -696,8 +696,10 @@ * * @return a shallow copy of this map */ - public Object clone() { + @Override + public IdentityHashMap clone() { try { + @SuppressWarnings("unchecked") IdentityHashMap m = (IdentityHashMap) super.clone(); m.entrySet = null; m.table = table.clone();