8340082: Use inline return tag in java.base

Reviewed-by: iris, prappo, lancea, djelinski, naoto, liach
This commit is contained in:
Joe Darcy 2024-09-13 16:49:28 +00:00
parent 1a0a53883f
commit 89c172ac47
21 changed files with 32 additions and 59 deletions

View file

@ -477,8 +477,7 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
}
/**
* Returns a zero-length array.
* @return a zero-length array
* {@return a zero-length array}
*/
public Object[] toArray() {
return new Object[0];

View file

@ -176,8 +176,7 @@ public class AtomicBoolean implements java.io.Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return Boolean.toString(get());

View file

@ -340,8 +340,7 @@ public class AtomicInteger extends Number implements java.io.Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return Integer.toString(get());

View file

@ -366,8 +366,7 @@ public class AtomicIntegerArray implements java.io.Serializable {
}
/**
* Returns the String representation of the current values of array.
* @return the String representation of the current values of array
* {@return the String representation of the current values of array}
*/
public String toString() {
int iMax = array.length - 1;

View file

@ -341,8 +341,7 @@ public class AtomicLong extends Number implements java.io.Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return Long.toString(get());

View file

@ -366,8 +366,7 @@ public class AtomicLongArray implements java.io.Serializable {
}
/**
* Returns the String representation of the current values of array.
* @return the String representation of the current values of array
* {@return the String representation of the current values of array}
*/
public String toString() {
int iMax = array.length - 1;

View file

@ -269,8 +269,7 @@ public class AtomicReference<V> implements java.io.Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return String.valueOf(get());

View file

@ -297,8 +297,7 @@ public class AtomicReferenceArray<E> implements java.io.Serializable {
}
/**
* Returns the String representation of the current values of array.
* @return the String representation of the current values of array
* {@return the String representation of the current values of array}
*/
public String toString() {
int iMax = array.length - 1;

View file

@ -189,8 +189,7 @@ public class DoubleAccumulator extends Striped64 implements Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return Double.toString(get());

View file

@ -183,8 +183,7 @@ public class LongAccumulator extends Striped64 implements Serializable {
}
/**
* Returns the String representation of the current value.
* @return the String representation of the current value
* {@return the String representation of the current value}
*/
public String toString() {
return Long.toString(get());

View file

@ -119,8 +119,7 @@ public class Manifest implements Cloneable {
}
/**
* Returns the main Attributes for the Manifest.
* @return the main Attributes for the Manifest
* {@return the main Attributes for the Manifest}
*/
public Attributes getMainAttributes() {
return attr;

View file

@ -782,8 +782,7 @@ public class Deflater {
}
/**
* Returns the ADLER-32 value of the uncompressed data.
* @return the ADLER-32 value of the uncompressed data
* {@return the ADLER-32 value of the uncompressed data}
*/
public int getAdler() {
synchronized (zsRef) {

View file

@ -282,8 +282,7 @@ public class Inflater {
}
/**
* Returns true if a preset dictionary is needed for decompression.
* @return true if a preset dictionary is needed for decompression
* {@return true if a preset dictionary is needed for decompression}
* @see Inflater#setDictionary
*/
public boolean needsDictionary() {
@ -293,10 +292,8 @@ public class Inflater {
}
/**
* Returns true if the end of the compressed data stream has been
* reached.
* @return true if the end of the compressed data stream has been
* reached
* {@return true if the end of the compressed data stream has been
* reached}
*/
public boolean finished() {
synchronized (zsRef) {
@ -602,8 +599,7 @@ public class Inflater {
}
/**
* Returns the ADLER-32 value of the uncompressed data.
* @return the ADLER-32 value of the uncompressed data
* {@return the ADLER-32 value of the uncompressed data}
*/
public int getAdler() {
synchronized (zsRef) {

View file

@ -138,8 +138,7 @@ public class ZipEntry implements ZipConstants, Cloneable {
}
/**
* Returns the name of the entry.
* @return the name of the entry
* {@return the name of the entry}
*/
public String getName() {
return name;

View file

@ -498,8 +498,7 @@ public class ZipFile implements ZipConstants, Closeable {
}
/**
* Returns the path name of the ZIP file.
* @return the path name of the ZIP file
* {@return the path name of the ZIP file}
*/
public String getName() {
return filePath;
@ -560,8 +559,7 @@ public class ZipFile implements ZipConstants, Closeable {
}
/**
* Returns an enumeration of the ZIP file entries.
* @return an enumeration of the ZIP file entries
* {@return an enumeration of the ZIP file entries}
* @throws IllegalStateException if the ZIP file has been closed
*/
public Enumeration<? extends ZipEntry> entries() {