8185984: fix a11y and html issues in java.logging module
Reviewed-by: dfuchs, mchung
--- a/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java Tue Aug 08 22:53:38 2017 +0000
+++ b/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java Wed Aug 09 15:39:50 2017 -0700
@@ -1887,13 +1887,17 @@
* The registered {@linkplain #addConfigurationListener configuration
* listeners} will be invoked after the configuration is successfully updated.
* <br><br>
- * <table><caption style="display:none">Updating configuration properties</caption>
+ * <table class="striped">
+ * <caption style="display:none">Updating configuration properties</caption>
+ * <thead>
* <tr>
- * <th>Property</th>
- * <th>Resulting Behavior</th>
+ * <th scope="col">Property</th>
+ * <th scope="col">Resulting Behavior</th>
* </tr>
+ * </thead>
+ * <tbody>
* <tr>
- * <td valign="top">{@code <logger>.level}</td>
+ * <th scope="row" valign="top">{@code <logger>.level}</th>
* <td>
* <ul>
* <li>If the resulting configuration defines a level for a logger and
@@ -1914,7 +1918,7 @@
* </ul>
* </td>
* <tr>
- * <td valign="top">{@code <logger>.useParentHandlers}</td>
+ * <th scope="row" valign="top">{@code <logger>.useParentHandlers}</th>
* <td>
* <ul>
* <li>If either the resulting or the old value for the useParentHandlers
@@ -1928,7 +1932,7 @@
* </td>
* </tr>
* <tr>
- * <td valign="top">{@code <logger>.handlers}</td>
+ * <th scope="row" valign="top">{@code <logger>.handlers}</th>
* <td>
* <ul>
* <li>If the resulting configuration defines a list of handlers for a
@@ -1952,7 +1956,7 @@
* </td>
* </tr>
* <tr>
- * <td valign="top">{@code <handler-name>.*}</td>
+ * <th scope="row" valign="top">{@code <handler-name>.*}</th>
* <td>
* <ul>
* <li>Properties configured/changed on handler classes will only affect
@@ -1964,7 +1968,7 @@
* </td>
* </tr>
* <tr>
- * <td valign="top">{@code config} and any other property</td>
+ * <th scope="row" valign="top">{@code config} and any other property</th>
* <td>
* <ul>
* <li>The resulting value for these property will be stored in the
@@ -1974,6 +1978,7 @@
* </ul>
* </td>
* </tr>
+ * </tbody>
* </table>
* <p>
* <em>Example mapper functions:</em>
--- a/jdk/src/java.logging/share/classes/java/util/logging/Logger.java Tue Aug 08 22:53:38 2017 +0000
+++ b/jdk/src/java.logging/share/classes/java/util/logging/Logger.java Wed Aug 09 15:39:50 2017 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2017, 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
@@ -1497,7 +1497,7 @@
* The {@code msg} string is localized using the given resource bundle.
* If the resource bundle is {@code null}, then the {@code msg} string is not
* localized.
- * <p>
+ *
* @param level One of the message level identifiers, e.g., {@code SEVERE}
* @param bundle Resource bundle to localize {@code msg};
* can be {@code null}.
@@ -1614,7 +1614,7 @@
* processed specially by output {@code Formatter} objects and is not treated
* as a formatting parameter to the {@code LogRecord} {@code message}
* property.
- * <p>
+ *
* @param level One of the message level identifiers, e.g., {@code SEVERE}
* @param bundle Resource bundle to localize {@code msg};
* can be {@code null}.
--- a/jdk/src/java.logging/share/classes/java/util/logging/SimpleFormatter.java Tue Aug 08 22:53:38 2017 +0000
+++ b/jdk/src/java.logging/share/classes/java/util/logging/SimpleFormatter.java Wed Aug 09 15:39:50 2017 -0700
@@ -41,7 +41,7 @@
* The {@code SimpleFormatter} is initialized with the
* <a href="../Formatter.html#syntax">format string</a>
* specified in the {@code java.util.logging.SimpleFormatter.format}
- * property to {@linkplain #format format} the log messages.
+ * property to {@linkplain #format(LogRecord) format} the log messages.
* This property can be defined
* in the {@linkplain LogManager#getProperty logging properties}
* configuration file