8176563: @since value errors in apis of java.base/java.logging module
authormli
Wed, 15 Mar 2017 19:24:56 -0700
changeset 44263 7a9297d467e7
parent 44262 bfbb47bd118d
child 44264 8ff59e9e832c
8176563: @since value errors in apis of java.base/java.logging module Reviewed-by: alanb, chegar, dfuchs, dholmes, martin, naoto, rriggs
jdk/src/java.base/share/classes/java/io/ObjectInputFilter.java
jdk/src/java.base/share/classes/java/lang/Math.java
jdk/src/java.base/share/classes/java/lang/ProcessBuilder.java
jdk/src/java.base/share/classes/java/time/Duration.java
jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java
jdk/src/java.logging/share/classes/java/util/logging/LogManager.java
--- a/jdk/src/java.base/share/classes/java/io/ObjectInputFilter.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/io/ObjectInputFilter.java	Wed Mar 15 19:24:56 2017 -0700
@@ -104,7 +104,6 @@
      * @return  {@link Status#ALLOWED Status.ALLOWED} if accepted,
      *          {@link Status#REJECTED Status.REJECTED} if rejected,
      *          {@link Status#UNDECIDED Status.UNDECIDED} if undecided.
-     * @since 9
      */
     Status checkInput(FilterInfo filterInfo);
 
--- a/jdk/src/java.base/share/classes/java/lang/Math.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Math.java	Wed Mar 15 19:24:56 2017 -0700
@@ -1079,6 +1079,7 @@
      * @param x the first value
      * @param y the second value
      * @return the result
+     * @since 9
      */
     public static long multiplyFull(int x, int y) {
         return (long)x * (long)y;
@@ -1091,6 +1092,7 @@
      * @param x the first value
      * @param y the second value
      * @return the result
+     * @since 9
      */
     public static long multiplyHigh(long x, long y) {
         if (x < 0 || y < 0) {
--- a/jdk/src/java.base/share/classes/java/lang/ProcessBuilder.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/ProcessBuilder.java	Wed Mar 15 19:24:56 2017 -0700
@@ -1251,6 +1251,7 @@
      *          If the operating system does not support the creation of processes
      *
      * @throws IOException if an I/O error occurs
+     * @since 9
      */
     public static List<Process> startPipeline(List<ProcessBuilder> builders) throws IOException {
         // Accumulate and check the builders
--- a/jdk/src/java.base/share/classes/java/time/Duration.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/time/Duration.java	Wed Mar 15 19:24:56 2017 -0700
@@ -1370,6 +1370,7 @@
      * @return a {@code Duration} based on this duration with the time truncated, not null
      * @throws DateTimeException if the unit is invalid for truncation
      * @throws UnsupportedTemporalTypeException if the unit is not supported
+     * @since 9
      */
     public Duration truncatedTo(TemporalUnit unit) {
         Objects.requireNonNull(unit, "unit");
--- a/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Wed Mar 15 19:24:56 2017 -0700
@@ -1278,6 +1278,7 @@
      *
      * @param textStyle  the text style to use, not null
      * @return this, for chaining, not null
+     * @since 9
      */
     public DateTimeFormatterBuilder appendGenericZoneText(TextStyle textStyle) {
         appendInternal(new ZoneTextPrinterParser(textStyle, null, true));
@@ -1303,6 +1304,7 @@
      * @param textStyle  the text style to use, not null
      * @param preferredZones  the set of preferred zone ids, not null
      * @return this, for chaining, not null
+     * @since 9
      */
     public DateTimeFormatterBuilder appendGenericZoneText(TextStyle textStyle,
                                                           Set<ZoneId> preferredZones) {
--- a/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/jdk/src/java.logging/share/classes/java/util/logging/LogManager.java	Wed Mar 15 19:24:56 2017 -0700
@@ -1839,6 +1839,7 @@
      *          logging configuration file.
      *
      * @see #updateConfiguration(java.io.InputStream, java.util.function.Function)
+     * @since 9
      */
     public void updateConfiguration(Function<String, BiFunction<String,String,String>> mapper)
             throws IOException {
@@ -2035,6 +2036,7 @@
      * @throws  IOException if there are problems reading from the stream,
      *          or the given stream is not in the
      *          {@linkplain java.util.Properties properties file} format.
+     * @since 9
      */
     public void updateConfiguration(InputStream ins,
             Function<String, BiFunction<String,String,String>> mapper)