changeset 16872:5548e024cbcf

8176563: @since value errors in apis of java.base/java.logging module Reviewed-by: alanb, chegar, dfuchs, dholmes, martin, naoto, rriggs
author mli
date Wed, 15 Mar 2017 19:24:56 -0700
parents 1ee5af7d82a4
children 832ae841344c
files src/java.base/share/classes/java/io/ObjectInputFilter.java src/java.base/share/classes/java/lang/Math.java src/java.base/share/classes/java/lang/ProcessBuilder.java src/java.base/share/classes/java/time/Duration.java src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java src/java.logging/share/classes/java/util/logging/LogManager.java
diffstat 6 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/io/ObjectInputFilter.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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/src/java.base/share/classes/java/lang/Math.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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/src/java.base/share/classes/java/lang/ProcessBuilder.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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/src/java.base/share/classes/java/time/Duration.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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/src/java.logging/share/classes/java/util/logging/LogManager.java	Wed Mar 15 18:08:46 2017 -0700
+++ b/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)