Skip to content

Commit 89c172a

Browse files
committed
8340082: Use inline return tag in java.base
Reviewed-by: iris, prappo, lancea, djelinski, naoto, liach
1 parent 1a0a538 commit 89c172a

21 files changed

+32
-59
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 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
@@ -1218,8 +1218,7 @@ private static boolean matchesPackage(Class<?> c, String pkg) {
12181218
}
12191219

12201220
/**
1221-
* Returns the pattern used to create this filter.
1222-
* @return the pattern used to create this filter
1221+
* {@return the pattern used to create this filter}
12231222
*/
12241223
@Override
12251224
public String toString() {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3859,8 +3859,7 @@ private int readUTFChar(StringBuilder sbuf, long utflen)
38593859
}
38603860

38613861
/**
3862-
* Returns the number of bytes read from the input stream.
3863-
* @return the number of bytes read from the input stream
3862+
* {@return the number of bytes read from the input stream}
38643863
*/
38653864
long getBytesRead() {
38663865
return in.getBytesRead();

src/java.base/share/classes/java/lang/annotation/Retention.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, 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
@@ -45,8 +45,7 @@
4545
@Target(ElementType.ANNOTATION_TYPE)
4646
public @interface Retention {
4747
/**
48-
* Returns the retention policy.
49-
* @return the retention policy
48+
* {@return the retention policy}
5049
*/
5150
RetentionPolicy value();
5251
}

src/java.base/share/classes/java/nio/charset/MalformedInputException.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 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
@@ -56,16 +56,14 @@ public MalformedInputException(int inputLength) {
5656
}
5757

5858
/**
59-
* Returns the length of the input.
60-
* @return the length of the input
59+
* {@return the length of the input}
6160
*/
6261
public int getInputLength() {
6362
return inputLength;
6463
}
6564

6665
/**
67-
* Returns the message.
68-
* @return the message
66+
* {@return the message}
6967
*/
7068
public String getMessage() {
7169
return "Input length = " + inputLength;

src/java.base/share/classes/java/nio/charset/UnmappableCharacterException.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 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
@@ -56,16 +56,14 @@ public UnmappableCharacterException(int inputLength) {
5656
}
5757

5858
/**
59-
* Returns the length of the input.
60-
* @return the length of the input
59+
* {@return the length of the input}
6160
*/
6261
public int getInputLength() {
6362
return inputLength;
6463
}
6564

6665
/**
67-
* Returns the message.
68-
* @return the message
66+
* {@return the message}
6967
*/
7068
public String getMessage() {
7169
return "Input length = " + inputLength;

src/java.base/share/classes/java/time/format/TextStyle.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 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
@@ -137,8 +137,7 @@ public boolean isStandalone() {
137137
}
138138

139139
/**
140-
* Returns the stand-alone style with the same size.
141-
* @return the stand-alone style with the same size
140+
* {@return the stand-alone style with the same size}
142141
*/
143142
public TextStyle asStandalone() {
144143
return TextStyle.values()[ordinal() | 1];

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,7 @@ public Spliterator<E> spliterator() {
477477
}
478478

479479
/**
480-
* Returns a zero-length array.
481-
* @return a zero-length array
480+
* {@return a zero-length array}
482481
*/
483482
public Object[] toArray() {
484483
return new Object[0];

src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ public final boolean getAndSet(boolean newValue) {
176176
}
177177

178178
/**
179-
* Returns the String representation of the current value.
180-
* @return the String representation of the current value
179+
* {@return the String representation of the current value}
181180
*/
182181
public String toString() {
183182
return Boolean.toString(get());

src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ public final int accumulateAndGet(int x,
340340
}
341341

342342
/**
343-
* Returns the String representation of the current value.
344-
* @return the String representation of the current value
343+
* {@return the String representation of the current value}
345344
*/
346345
public String toString() {
347346
return Integer.toString(get());

src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ public final int accumulateAndGet(int i, int x,
366366
}
367367

368368
/**
369-
* Returns the String representation of the current values of array.
370-
* @return the String representation of the current values of array
369+
* {@return the String representation of the current values of array}
371370
*/
372371
public String toString() {
373372
int iMax = array.length - 1;

0 commit comments

Comments
 (0)