--- old/src/share/classes/sun/misc/Cache.java 2014-01-07 15:51:32.000000000 -0800 +++ new/src/share/classes/sun/misc/Cache.java 2014-01-07 15:51:32.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 1996, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2014, 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 @@ -74,8 +74,9 @@ * @see java.lang.Object#equals * @see sun.misc.Ref */ +@Deprecated public -class Cache extends Dictionary { + class Cache extends Dictionary { /** * The hash table data. */ @@ -163,7 +164,7 @@ * @see Cache#elements * @see Enumeration */ - public synchronized Enumeration keys() { + public synchronized Enumeration keys() { return new CacheEnumerator(table, true); } @@ -173,7 +174,7 @@ * @see Cache#keys * @see Enumeration */ - public synchronized Enumeration elements() { + public synchronized Enumeration elements() { return new CacheEnumerator(table, false); } @@ -305,7 +306,7 @@ * A Cache enumerator class. This class should remain opaque * to the client. It will use the Enumeration interface. */ -class CacheEnumerator implements Enumeration { +class CacheEnumerator implements Enumeration { boolean keys; int index; CacheEntry table[];