Skip to content

Commit

Permalink
8315921: Invalid CSS declarations in java.lang class documentation
Browse files Browse the repository at this point in the history
Reviewed-by: jpai, alanb
  • Loading branch information
hns committed Nov 2, 2023
1 parent 792d829 commit 2d4a4d0
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/lang/String.java
Original file line number Diff line number Diff line change
Expand Up @@ -3439,9 +3439,9 @@ private String[] split(char ch, int limit, boolean withDelimiters) {
* </tr>
* </thead>
* <tbody>
* <tr><th scope="row" style="text-weight:normal">:</th>
* <tr><th scope="row" style="font-weight:normal">:</th>
* <td>{@code { "boo", "and", "foo" }}</td></tr>
* <tr><th scope="row" style="text-weight:normal">o</th>
* <tr><th scope="row" style="font-weight:normal">o</th>
* <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table></blockquote>
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
* In the JDK Reference Implementation, the virtual thread scheduler may be configured
* with the following system properties:
* <table class="striped">
* <caption style="display:none:">System properties</caption>
* <caption style="display:none">System properties</caption>
* <thead>
* <tr>
* <th scope="col">System property</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* are {@link Thread#isDaemon daemon} threads.
*
* <table class="striped">
* <caption style="display:none:">System properties</caption>
* <caption style="display:none">System properties</caption>
* <thead>
* <tr>
* <th scope="col">System property</th>
Expand Down
72 changes: 36 additions & 36 deletions src/java.base/share/classes/java/text/MessageFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,66 +157,66 @@
* </thead>
* <tbody>
* <tr>
* <th scope="row" style="text-weight: normal"><i>(none)</i>
* <th scope="row" style="text-weight: normal"><i>(none)</i>
* <th scope="row" style="font-weight:normal"><i>(none)</i>
* <th scope="row" style="font-weight:normal"><i>(none)</i>
* <td>{@code null}
* <tr>
* <th scope="row" style="text-weight: normal" rowspan=5>{@code number}
* <th scope="row" style="text-weight: normal"><i>(none)</i>
* <th scope="row" style="font-weight:normal" rowspan=5>{@code number}
* <th scope="row" style="font-weight:normal"><i>(none)</i>
* <td>{@link NumberFormat#getInstance(Locale) NumberFormat.getInstance}{@code (getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code integer}
* <th scope="row" style="font-weight:normal">{@code integer}
* <td>{@link NumberFormat#getIntegerInstance(Locale) NumberFormat.getIntegerInstance}{@code (getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code currency}
* <th scope="row" style="font-weight:normal">{@code currency}
* <td>{@link NumberFormat#getCurrencyInstance(Locale) NumberFormat.getCurrencyInstance}{@code (getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code percent}
* <th scope="row" style="font-weight:normal">{@code percent}
* <td>{@link NumberFormat#getPercentInstance(Locale) NumberFormat.getPercentInstance}{@code (getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal"><i>SubformatPattern</i>
* <th scope="row" style="font-weight:normal"><i>SubformatPattern</i>
* <td>{@code new} {@link DecimalFormat#DecimalFormat(String,DecimalFormatSymbols) DecimalFormat}{@code (subformatPattern,} {@link DecimalFormatSymbols#getInstance(Locale) DecimalFormatSymbols.getInstance}{@code (getLocale()))}
* <tr>
* <th scope="row" style="text-weight: normal" rowspan=6>{@code date}
* <th scope="row" style="text-weight: normal"><i>(none)</i>
* <th scope="row" style="font-weight:normal" rowspan=6>{@code date}
* <th scope="row" style="font-weight:normal"><i>(none)</i>
* <td>{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code short}
* <th scope="row" style="font-weight:normal">{@code short}
* <td>{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#SHORT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code medium}
* <th scope="row" style="font-weight:normal">{@code medium}
* <td>{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code long}
* <th scope="row" style="font-weight:normal">{@code long}
* <td>{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#LONG}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code full}
* <th scope="row" style="font-weight:normal">{@code full}
* <td>{@link DateFormat#getDateInstance(int,Locale) DateFormat.getDateInstance}{@code (}{@link DateFormat#FULL}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal"><i>SubformatPattern</i>
* <th scope="row" style="font-weight:normal"><i>SubformatPattern</i>
* <td>{@code new} {@link SimpleDateFormat#SimpleDateFormat(String,Locale) SimpleDateFormat}{@code (subformatPattern, getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal" rowspan=6>{@code time}
* <th scope="row" style="text-weight: normal"><i>(none)</i>
* <th scope="row" style="font-weight:normal" rowspan=6>{@code time}
* <th scope="row" style="font-weight:normal"><i>(none)</i>
* <td>{@link DateFormat#getTimeInstance(int,Locale) DateFormat.getTimeInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code short}
* <th scope="row" style="font-weight:normal">{@code short}
* <td>{@link DateFormat#getTimeInstance(int,Locale) DateFormat.getTimeInstance}{@code (}{@link DateFormat#SHORT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code medium}
* <th scope="row" style="font-weight:normal">{@code medium}
* <td>{@link DateFormat#getTimeInstance(int,Locale) DateFormat.getTimeInstance}{@code (}{@link DateFormat#DEFAULT}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code long}
* <th scope="row" style="font-weight:normal">{@code long}
* <td>{@link DateFormat#getTimeInstance(int,Locale) DateFormat.getTimeInstance}{@code (}{@link DateFormat#LONG}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code full}
* <th scope="row" style="font-weight:normal">{@code full}
* <td>{@link DateFormat#getTimeInstance(int,Locale) DateFormat.getTimeInstance}{@code (}{@link DateFormat#FULL}{@code , getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal"><i>SubformatPattern</i>
* <th scope="row" style="font-weight:normal"><i>SubformatPattern</i>
* <td>{@code new} {@link SimpleDateFormat#SimpleDateFormat(String,Locale) SimpleDateFormat}{@code (subformatPattern, getLocale())}
* <tr>
* <th scope="row" style="text-weight: normal">{@code choice}
* <th scope="row" style="text-weight: normal"><i>SubformatPattern</i>
* <th scope="row" style="font-weight:normal">{@code choice}
* <th scope="row" style="font-weight:normal"><i>SubformatPattern</i>
* <td>{@code new} {@link ChoiceFormat#ChoiceFormat(String) ChoiceFormat}{@code (subformatPattern)}
* </tbody>
* </table>
Expand Down Expand Up @@ -822,34 +822,34 @@ public Format[] getFormats() {
* </thead>
* <tbody>
* <tr>
* <th scope="row" style="text-weight-normal" rowspan=2><i>any</i>
* <th scope="row" style="text-weight-normal"><i>unavailable</i>
* <th scope="row" style="font-weight:normal" rowspan=2><i>any</i>
* <th scope="row" style="font-weight:normal"><i>unavailable</i>
* <td><code>"{" + argumentIndex + "}"</code>
* <tr>
* <th scope="row" style="text-weight-normal">{@code null}
* <th scope="row" style="font-weight:normal">{@code null}
* <td>{@code "null"}
* <tr>
* <th scope="row" style="text-weight-normal">{@code instanceof ChoiceFormat}
* <th scope="row" style="text-weight-normal"><i>any</i>
* <th scope="row" style="font-weight:normal">{@code instanceof ChoiceFormat}
* <th scope="row" style="font-weight:normal"><i>any</i>
* <td><code>subformat.format(argument).indexOf('{') &gt;= 0 ?<br>
* (new MessageFormat(subformat.format(argument), getLocale())).format(argument) :
* subformat.format(argument)</code>
* <tr>
* <th scope="row" style="text-weight-normal">{@code != null}
* <th scope="row" style="text-weight-normal"><i>any</i>
* <th scope="row" style="font-weight:normal">{@code != null}
* <th scope="row" style="font-weight:normal"><i>any</i>
* <td>{@code subformat.format(argument)}
* <tr>
* <th scope="row" style="text-weight-normal" rowspan=4>{@code null}
* <th scope="row" style="text-weight-normal">{@code instanceof Number}
* <th scope="row" style="font-weight:normal" rowspan=4>{@code null}
* <th scope="row" style="font-weight:normal">{@code instanceof Number}
* <td>{@code NumberFormat.getInstance(getLocale()).format(argument)}
* <tr>
* <th scope="row" style="text-weight-normal">{@code instanceof Date}
* <th scope="row" style="font-weight:normal">{@code instanceof Date}
* <td>{@code DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, getLocale()).format(argument)}
* <tr>
* <th scope="row" style="text-weight-normal">{@code instanceof String}
* <th scope="row" style="font-weight:normal">{@code instanceof String}
* <td>{@code argument}
* <tr>
* <th scope="row" style="text-weight-normal"><i>any</i>
* <th scope="row" style="font-weight:normal"><i>any</i>
* <td>{@code argument.toString()}
* </tbody>
* </table>
Expand Down
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/util/regex/Pattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -1463,9 +1463,9 @@ private String[] split(CharSequence input, int limit, boolean withDelimiters) {
* </tr>
* </thead>
* <tbody>
* <tr><th scope="row" style="text-weight:normal">:</th>
* <tr><th scope="row" style="font-weight:normal">:</th>
* <td>{@code { "boo", "and", "foo" }}</td></tr>
* <tr><th scope="row" style="text-weight:normal">o</th>
* <tr><th scope="row" style="font-weight:normal">o</th>
* <td>{@code { "b", "", ":and:f" }}</td></tr>
* </tbody>
* </table>
Expand Down

1 comment on commit 2d4a4d0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.