diff --git a/src/java.base/share/classes/java/io/PrintStream.java b/src/java.base/share/classes/java/io/PrintStream.java index 2a548660a98ba..35e2716dbd324 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 @@ private void implWrite(byte[] buf, int off, int len) throws IOException { * * @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 530df86bdd632..823fd841c0541 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 @@ private static void tryFinallyChecks(MethodHandle target, MethodHandle cleanup) * 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 1eac76b3e445d..1762d42140ec6 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 MalformedParameterizedTypeException() { * 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 9740046322db0..d560d3843d23b 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 final MappedByteBuffer rewind() { * {@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 final MappedByteBuffer rewind() { * 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 final MappedByteBuffer rewind() { /** * {@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 8d38b9df94621..45ca0363660e5 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 Properties() { * 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 dd1ea70195b3b..5e3f73302d842 100644 --- a/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java +++ b/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java @@ -506,6 +506,8 @@ public float nextFloat() { * {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} * @implNote {@inheritDoc} + * + * @since 17 */ @Override public float nextFloat(float bound) { @@ -516,6 +518,8 @@ public float nextFloat(float bound) { * {@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 ca123bd36daa2..033e504677b71 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 void setDictionary(byte[] dictionary) { * @param dictionary the dictionary data bytes * @see Inflater#inflate * @see Inflater#getAdler() + * + * @since 11 */ public void setDictionary(ByteBuffer dictionary) { synchronized (zsRef) {