Skip to content

Commit e0bab78

Browse files
nizarbenallajaikiran
authored andcommitted
8326951: since-checker - missing @ since tags
Reviewed-by: jpai
1 parent 31f7039 commit e0bab78

File tree

7 files changed

+22
-5
lines changed

7 files changed

+22
-5
lines changed

src/java.base/share/classes/java/io/PrintStream.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,6 @@ private void implWrite(byte[] buf, int off, int len) throws IOException {
679679
*
680680
* @see #writeBytes(byte[])
681681
* @see #write(byte[],int,int)
682-
*
683-
* @since 14
684682
*/
685683
@Override
686684
public void write(byte[] buf) throws IOException {

src/java.base/share/classes/java/lang/invoke/MethodHandles.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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)
79197919
* handles is not {@code int}, or if the types of
79207920
* the fallback handle and all of target handles are
79217921
* not the same.
7922+
*
7923+
* @since 17
79227924
*/
79237925
public static MethodHandle tableSwitch(MethodHandle fallback, MethodHandle... targets) {
79247926
Objects.requireNonNull(fallback);

src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -50,6 +50,8 @@ public MalformedParameterizedTypeException() {
5050
* Constructs a {@code MalformedParameterizedTypeException} with
5151
* the given detail message.
5252
* @param message the detail message; may be {@code null}
53+
*
54+
* @since 10
5355
*/
5456
public MalformedParameterizedTypeException(String message) {
5557
super(message);

src/java.base/share/classes/java/nio/MappedByteBuffer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ public final MappedByteBuffer rewind() {
397397
* {@code force()} on the returned buffer, will only act on the sub-range
398398
* of this buffer that the returned buffer represents, namely
399399
* {@code [position(),limit())}.
400+
*
401+
* @since 17
400402
*/
401403
@Override
402404
public abstract MappedByteBuffer slice();
@@ -410,19 +412,25 @@ public final MappedByteBuffer rewind() {
410412
* of this buffer that the returned buffer represents, namely
411413
* {@code [index,index+length)}, where {@code index} and {@code length} are
412414
* assumed to satisfy the preconditions.
415+
*
416+
* @since 17
413417
*/
414418
@Override
415419
public abstract MappedByteBuffer slice(int index, int length);
416420

417421
/**
418422
* {@inheritDoc}
423+
*
424+
* @since 17
419425
*/
420426
@Override
421427
public abstract MappedByteBuffer duplicate();
422428

423429
/**
424430
* {@inheritDoc}
425431
* @throws ReadOnlyBufferException {@inheritDoc}
432+
*
433+
* @since 17
426434
*/
427435
@Override
428436
public abstract MappedByteBuffer compact();

src/java.base/share/classes/java/util/Properties.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1995, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -185,6 +185,7 @@ public Properties() {
185185
* accommodate this many elements
186186
* @throws IllegalArgumentException if the initial capacity is less than
187187
* zero.
188+
* @since 10
188189
*/
189190
public Properties(int initialCapacity) {
190191
this(null, initialCapacity);

src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ public float nextFloat() {
500500
* {@inheritDoc}
501501
* @throws IllegalArgumentException {@inheritDoc}
502502
* @implNote {@inheritDoc}
503+
*
504+
* @since 17
503505
*/
504506
@Override
505507
public float nextFloat(float bound) {
@@ -510,6 +512,8 @@ public float nextFloat(float bound) {
510512
* {@inheritDoc}
511513
* @throws IllegalArgumentException {@inheritDoc}
512514
* @implNote {@inheritDoc}
515+
*
516+
* @since 17
513517
*/
514518
@Override
515519
public float nextFloat(float origin, float bound) {

src/java.base/share/classes/java/util/zip/Deflater.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ public void setDictionary(byte[] dictionary) {
336336
* @param dictionary the dictionary data bytes
337337
* @see Inflater#inflate
338338
* @see Inflater#getAdler()
339+
*
340+
* @since 11
339341
*/
340342
public void setDictionary(ByteBuffer dictionary) {
341343
synchronized (zsRef) {

0 commit comments

Comments
 (0)