@@ -231,7 +231,8 @@ public static <K extends Enum<K>, V> ImmutableMap<K, V> immutableEnumMap(
231
231
*
232
232
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
233
233
* use the {@code HashMap} constructor directly, taking advantage of <a
234
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
234
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
235
+ * syntax</a>.
235
236
*
236
237
* @return a new, empty {@code HashMap}
237
238
*/
@@ -249,7 +250,8 @@ HashMap<K, V> newHashMap() {
249
250
*
250
251
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
251
252
* use the {@code HashMap} constructor directly, taking advantage of <a
252
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
253
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
254
+ * syntax</a>.
253
255
*
254
256
* @param map the mappings to be placed in the new map
255
257
* @return a new {@code HashMap} initialized with the mappings from {@code map}
@@ -309,7 +311,8 @@ static int capacity(int expectedSize) {
309
311
*
310
312
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
311
313
* use the {@code LinkedHashMap} constructor directly, taking advantage of <a
312
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
314
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
315
+ * syntax</a>.
313
316
*
314
317
* @return a new, empty {@code LinkedHashMap}
315
318
*/
@@ -326,7 +329,8 @@ LinkedHashMap<K, V> newLinkedHashMap() {
326
329
*
327
330
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
328
331
* use the {@code LinkedHashMap} constructor directly, taking advantage of <a
329
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
332
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
333
+ * syntax</a>.
330
334
*
331
335
* @param map the mappings to be placed in the new map
332
336
* @return a new, {@code LinkedHashMap} initialized with the mappings from {@code map}
@@ -370,7 +374,8 @@ public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
370
374
*
371
375
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
372
376
* use the {@code TreeMap} constructor directly, taking advantage of <a
373
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
377
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
378
+ * syntax</a>.
374
379
*
375
380
* @return a new, empty {@code TreeMap}
376
381
*/
@@ -388,7 +393,8 @@ public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
388
393
*
389
394
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
390
395
* use the {@code TreeMap} constructor directly, taking advantage of <a
391
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
396
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
397
+ * syntax</a>.
392
398
*
393
399
* @param map the sorted map whose mappings are to be placed in the new map and whose comparator
394
400
* is to be used to sort the new map
@@ -408,7 +414,8 @@ public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
408
414
*
409
415
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
410
416
* use the {@code TreeMap} constructor directly, taking advantage of <a
411
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
417
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
418
+ * syntax</a>.
412
419
*
413
420
* @param comparator the comparator to sort the keys with
414
421
* @return a new, empty {@code TreeMap}
@@ -439,7 +446,8 @@ TreeMap<K, V> newTreeMap(@CheckForNull Comparator<C> comparator) {
439
446
*
440
447
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
441
448
* use the {@code EnumMap} constructor directly, taking advantage of <a
442
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
449
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
450
+ * syntax</a>.
443
451
*
444
452
* @param map the map from which to initialize this {@code EnumMap}
445
453
* @return a new {@code EnumMap} initialized with the mappings from {@code map}
@@ -456,7 +464,8 @@ TreeMap<K, V> newTreeMap(@CheckForNull Comparator<C> comparator) {
456
464
*
457
465
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
458
466
* use the {@code IdentityHashMap} constructor directly, taking advantage of <a
459
- * href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
467
+ * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond"
468
+ * syntax</a>.
460
469
*
461
470
* @return a new, empty {@code IdentityHashMap}
462
471
*/
0 commit comments