63
63
* along with a time zone ID. For instance, the time zone ID for the
64
64
* U.S. Pacific Time zone is "America/Los_Angeles". So, you can get a
65
65
* U.S. Pacific Time {@code TimeZone} object with:
66
- * <blockquote><pre>
66
+ * <blockquote>
67
+ * {@snippet lang=java :
67
68
* TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
68
- * </pre></blockquote>
69
+ * }
70
+ * </blockquote>
69
71
* You can use the {@code getAvailableIDs} method to iterate through
70
72
* all the supported time zone IDs. You can then choose a
71
73
* supported ID to get a {@code TimeZone}.
@@ -309,10 +311,14 @@ public void setID(String ID)
309
311
* presentation to the user in the default locale.
310
312
*
311
313
* <p>This method is equivalent to:
312
- * <blockquote><pre>
313
- * getDisplayName(false, {@link #LONG},
314
- * Locale.getDefault({@link Locale.Category#DISPLAY}))
315
- * </pre></blockquote>
314
+ * <blockquote>
315
+ * {@snippet lang=java :
316
+ * // @link substring="LONG" target="#LONG" :
317
+ * getDisplayName(false, LONG,
318
+ * // @link substring="Locale.Category.DISPLAY" target="Locale.Category#DISPLAY" :
319
+ * Locale.getDefault(Locale.Category.DISPLAY));
320
+ * }
321
+ * </blockquote>
316
322
*
317
323
* @return the human-readable name of this time zone in the default locale.
318
324
* @since 1.2
@@ -330,9 +336,12 @@ public final String getDisplayName() {
330
336
* presentation to the user in the specified {@code locale}.
331
337
*
332
338
* <p>This method is equivalent to:
333
- * <blockquote><pre>
334
- * getDisplayName(false, {@link #LONG}, locale)
335
- * </pre></blockquote>
339
+ * <blockquote>
340
+ * {@snippet lang=java :
341
+ * // @link substring="LONG" target="#LONG" :
342
+ * getDisplayName(false, LONG, locale);
343
+ * }
344
+ * </blockquote>
336
345
*
337
346
* @param locale the locale in which to supply the display name.
338
347
* @return the human-readable name of this time zone in the given locale.
@@ -352,10 +361,13 @@ public final String getDisplayName(Locale locale) {
352
361
* Time). Otherwise, a Standard Time name is returned.
353
362
*
354
363
* <p>This method is equivalent to:
355
- * <blockquote><pre>
364
+ * <blockquote>
365
+ * {@snippet lang=java :
356
366
* getDisplayName(daylight, style,
357
- * Locale.getDefault({@link Locale.Category#DISPLAY}))
358
- * </pre></blockquote>
367
+ * // @link substring="Locale.Category.DISPLAY" target="Locale.Category#DISPLAY" :
368
+ * Locale.getDefault(Locale.Category.DISPLAY));
369
+ * }
370
+ * </blockquote>
359
371
*
360
372
* @param daylight {@code true} specifying a Daylight Saving Time name, or
361
373
* {@code false} specifying a Standard Time name
0 commit comments