diff --git a/src/java.base/share/classes/java/io/PrintStream.java b/src/java.base/share/classes/java/io/PrintStream.java index 2a548660a98..35e2716dbd3 100644 --- a/src/java.base/share/classes/java/io/PrintStream.java +++ b/src/java.base/share/classes/java/io/PrintStream.java @@ -679,8 +679,6 @@ public class PrintStream extends FilterOutputStream * * @see #writeBytes(byte[]) * @see #write(byte[],int,int) - * - * @since 14 */ @Override public void write(byte[] buf) throws IOException { diff --git a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java index e4a0f03e6e7..9ac8e42a2f0 100644 --- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2024, 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 @@ -7919,6 +7919,8 @@ assertEquals("boojum", (String) catTrace.invokeExact("boo", "jum")); * handles is not {@code int}, or if the types of * the fallback handle and all of target handles are * not the same. + * + * @since 17 */ public static MethodHandle tableSwitch(MethodHandle fallback, MethodHandle... targets) { Objects.requireNonNull(fallback); diff --git a/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java b/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java index 1eac76b3e44..1762d42140e 100644 --- a/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java +++ b/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, 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 @@ -50,6 +50,8 @@ public class MalformedParameterizedTypeException extends RuntimeException { * Constructs a {@code MalformedParameterizedTypeException} with * the given detail message. * @param message the detail message; may be {@code null} + * + * @since 10 */ public MalformedParameterizedTypeException(String message) { super(message); diff --git a/src/java.base/share/classes/java/nio/MappedByteBuffer.java b/src/java.base/share/classes/java/nio/MappedByteBuffer.java index 9740046322d..d560d3843d2 100644 --- a/src/java.base/share/classes/java/nio/MappedByteBuffer.java +++ b/src/java.base/share/classes/java/nio/MappedByteBuffer.java @@ -397,6 +397,8 @@ public abstract sealed class MappedByteBuffer * {@code force()} on the returned buffer, will only act on the sub-range * of this buffer that the returned buffer represents, namely * {@code [position(),limit())}. + * + * @since 17 */ @Override public abstract MappedByteBuffer slice(); @@ -410,12 +412,16 @@ public abstract sealed class MappedByteBuffer * of this buffer that the returned buffer represents, namely * {@code [index,index+length)}, where {@code index} and {@code length} are * assumed to satisfy the preconditions. + * + * @since 17 */ @Override public abstract MappedByteBuffer slice(int index, int length); /** * {@inheritDoc} + * + * @since 17 */ @Override public abstract MappedByteBuffer duplicate(); @@ -423,6 +429,8 @@ public abstract sealed class MappedByteBuffer /** * {@inheritDoc} * @throws ReadOnlyBufferException {@inheritDoc} + * + * @since 17 */ @Override public abstract MappedByteBuffer compact(); diff --git a/src/java.base/share/classes/java/util/Properties.java b/src/java.base/share/classes/java/util/Properties.java index 8d38b9df946..45ca0363660 100644 --- a/src/java.base/share/classes/java/util/Properties.java +++ b/src/java.base/share/classes/java/util/Properties.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2024, 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 @@ -185,6 +185,7 @@ public class Properties extends Hashtable { * accommodate this many elements * @throws IllegalArgumentException if the initial capacity is less than * zero. + * @since 10 */ public Properties(int initialCapacity) { this(null, initialCapacity); diff --git a/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java b/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java index baa4c0e4f73..bd023a37d7b 100644 --- a/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java +++ b/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java @@ -500,6 +500,8 @@ public final class ThreadLocalRandom extends Random { * {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} * @implNote {@inheritDoc} + * + * @since 17 */ @Override public float nextFloat(float bound) { @@ -510,6 +512,8 @@ public final class ThreadLocalRandom extends Random { * {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} * @implNote {@inheritDoc} + * + * @since 17 */ @Override public float nextFloat(float origin, float bound) { diff --git a/src/java.base/share/classes/java/util/zip/Deflater.java b/src/java.base/share/classes/java/util/zip/Deflater.java index ca123bd36da..033e504677b 100644 --- a/src/java.base/share/classes/java/util/zip/Deflater.java +++ b/src/java.base/share/classes/java/util/zip/Deflater.java @@ -336,6 +336,8 @@ public class Deflater { * @param dictionary the dictionary data bytes * @see Inflater#inflate * @see Inflater#getAdler() + * + * @since 11 */ public void setDictionary(ByteBuffer dictionary) { synchronized (zsRef) {