|
62 | 62 | import java.util.function.BiFunction;
|
63 | 63 | import java.util.function.Consumer;
|
64 | 64 |
|
| 65 | +/* |
| 66 | + * This file is a copy (sigh) of <code> OpenJDK / jdk8u / jdk8u-dev / jdk |
| 67 | + * src/share/classes/java/util/WeakHashMap.java @ 13329:c35f231af17a </code> |
| 68 | + * with the following changes: |
| 69 | + * <ol> |
| 70 | + * <li>Turning off the formatter for the whole file so that comments stay the same.</li> |
| 71 | + * <li>Disabling checkstyle for the whole file.</li> |
| 72 | + * <li>Changing the copyright date.</li> |
| 73 | + * <li>Changing the package name.</li> |
| 74 | + * <li>Disabling warnings for the whole class.</li> |
| 75 | + * <li>Uniformly changing <code>WeakHashMap</code> to <code>WeakIdentityHashMap</code> |
| 76 | + * in the code (but not the JavaDoc! So the diff is easier to read.).</li> |
| 77 | + * <li>Updating the <code>import</code> statements.</li> |
| 78 | + * <li>Copying in the declarations of {@link #keySet} and {@link #values} |
| 79 | + * from {@link AbstractMap}, which are otherwise package-private.</li> |
| 80 | + * <li>Changing {@link #hash(Object)} to use {@link System#identityHashCode(Object)}.</li> |
| 81 | + * <li>Changing {@link #eq(Object, Object)} to compare objects with reference equality.</li> |
| 82 | + * <li>Changing {@link Entry#hashCode()} to use {@link System#identityHashCode(Object)} |
| 83 | + * to contribute to the hash code of an {@link Entry}.</li> |
| 84 | + * <li>Changing {@link Entry#equals(Object)} to compare keys using reference equality |
| 85 | + * (after which the values are compared with {@link Object#equals(Object)}).</li> |
| 86 | + * </ol> |
| 87 | + */ |
65 | 88 |
|
66 | 89 | /**
|
67 | 90 | * Hash table based implementation of the <tt>Map</tt> interface, with
|
|
163 | 186 | * @see java.util.HashMap
|
164 | 187 | * @see java.lang.ref.WeakReference
|
165 | 188 | */
|
166 |
| -/** |
167 |
| - * This file is a copy (sigh) of <code> OpenJDK / jdk8u / jdk8u-dev / jdk |
168 |
| - * src/share/classes/java/util/WeakHashMap.java @ 13329:c35f231af17a </code> |
169 |
| - * with the following changes: |
170 |
| - * <ol> |
171 |
| - * <li>Turning off the formatter for the whole file so that comments stay the same.</li> |
172 |
| - * <li>Disabling checkstyle for the whole file.</li> |
173 |
| - * <li>Changing the copyright date.</li> |
174 |
| - * <li>Changing the package name.</li> |
175 |
| - * <li>Disabling warnings for the whole class.</li> |
176 |
| - * <li>Uniformly changing <code>WeakHashMap</code> to <code>WeakIdentityHashMap</code> |
177 |
| - * in the code (but not the JavaDoc! So the diff is easier to read.).</li> |
178 |
| - * <li>Updating the <code>import</code> statements.</li> |
179 |
| - * <li>Copying in the declarations of {@link #keySet} and {@link #values} |
180 |
| - * from {@link AbstractMap}, which are otherwise package-private.</li> |
181 |
| - * <li>Changing {@link #hash(Object)} to use {@link System#identityHashCode(Object)}.</li> |
182 |
| - * <li>Changing {@link #eq(Object, Object)} to compare objects with reference equality.</li> |
183 |
| - * <li>Changing {@link Entry#hashCode()} to use {@link System#identityHashCode(Object)} |
184 |
| - * to contribute to the hash code of an {@link Entry}.</li> |
185 |
| - * <li>Changing {@link Entry#equals(Object)} to compare keys using reference equality |
186 |
| - * (after which the values are compared with {@link Object#equals(Object)}).</li> |
187 |
| - * </ol> |
188 |
| - */ |
189 | 189 | @SuppressWarnings("all")
|
190 | 190 | public class WeakIdentityHashMap<K,V>
|
191 | 191 | extends AbstractMap<K,V>
|
|
0 commit comments