8314738: Remove all occurrences of and support for @revised

Reviewed-by: mr
This commit is contained in:
Pavel Rappo 2023-08-22 13:02:53 +00:00
parent 6b9df037e4
commit f39fc0aa2d
28 changed files with 8 additions and 124 deletions

View File

@ -67,7 +67,6 @@ MODULES_SOURCE_PATH := $(call PathList, $(call GetModuleSrcPath) )
# ordering of tags as the tags are otherwise ordered in order of definition. # ordering of tags as the tags are otherwise ordered in order of definition.
JAVADOC_TAGS := \ JAVADOC_TAGS := \
-tag beaninfo:X \ -tag beaninfo:X \
-tag revised:X \
-tag since.unbundled:X \ -tag since.unbundled:X \
-tag Note:X \ -tag Note:X \
-tag ToDo:X \ -tag ToDo:X \

View File

@ -499,8 +499,6 @@ public class FileInputStream extends InputStream
* this method should be prepared to handle possible reentrant invocation. * this method should be prepared to handle possible reentrant invocation.
* *
* @throws IOException {@inheritDoc} * @throws IOException {@inheritDoc}
*
* @revised 1.4
*/ */
@Override @Override
public void close() throws IOException { public void close() throws IOException {

View File

@ -392,8 +392,6 @@ public class FileOutputStream extends OutputStream
* this method should be prepared to handle possible reentrant invocation. * this method should be prepared to handle possible reentrant invocation.
* *
* @throws IOException if an I/O error occurs. * @throws IOException if an I/O error occurs.
*
* @revised 1.4
*/ */
@Override @Override
public void close() throws IOException { public void close() throws IOException {

View File

@ -157,8 +157,6 @@ public class InputStreamReader extends Reader {
* {@code null} if the stream has been closed * {@code null} if the stream has been closed
* *
* @see Charset * @see Charset
*
* @revised 1.4
*/ */
public String getEncoding() { public String getEncoding() {
return sd.getEncoding(); return sd.getEncoding();

View File

@ -176,8 +176,6 @@ public class OutputStreamWriter extends Writer {
* {@code null} if the stream has been closed * {@code null} if the stream has been closed
* *
* @see Charset * @see Charset
*
* @revised 1.4
*/ */
public String getEncoding() { public String getEncoding() {
return se.getEncoding(); return se.getEncoding();

View File

@ -129,7 +129,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @see java.lang.SecurityException * @see java.lang.SecurityException
* @see java.lang.SecurityManager#checkRead(java.lang.String) * @see java.lang.SecurityManager#checkRead(java.lang.String)
* @see java.lang.SecurityManager#checkWrite(java.lang.String) * @see java.lang.SecurityManager#checkWrite(java.lang.String)
* @revised 1.4
*/ */
public RandomAccessFile(String name, String mode) public RandomAccessFile(String name, String mode)
throws FileNotFoundException throws FileNotFoundException
@ -215,7 +214,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @see java.lang.SecurityManager#checkRead(java.lang.String) * @see java.lang.SecurityManager#checkRead(java.lang.String)
* @see java.lang.SecurityManager#checkWrite(java.lang.String) * @see java.lang.SecurityManager#checkWrite(java.lang.String)
* @see java.nio.channels.FileChannel#force(boolean) * @see java.nio.channels.FileChannel#force(boolean)
* @revised 1.4
*/ */
public RandomAccessFile(File file, String mode) public RandomAccessFile(File file, String mode)
throws FileNotFoundException throws FileNotFoundException
@ -703,8 +701,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* this method should be prepared to handle possible reentrant invocation. * this method should be prepared to handle possible reentrant invocation.
* *
* @throws IOException if an I/O error occurs. * @throws IOException if an I/O error occurs.
*
* @revised 1.4
*/ */
public void close() throws IOException { public void close() throws IOException {
if (closed) { if (closed) {

View File

@ -1168,7 +1168,6 @@ public final class Class<T> implements java.io.Serializable,
* this method returns {@code null}. * this method returns {@code null}.
* *
* @return the package of this class. * @return the package of this class.
* @revised 9
*/ */
public Package getPackage() { public Package getPackage() {
if (isPrimitive() || isArray()) { if (isPrimitive() || isArray()) {
@ -3029,7 +3028,6 @@ public final class Class<T> implements java.io.Serializable,
* *
* @see Module#getResourceAsStream(String) * @see Module#getResourceAsStream(String)
* @since 1.1 * @since 1.1
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public InputStream getResourceAsStream(String name) { public InputStream getResourceAsStream(String name) {
@ -3125,7 +3123,6 @@ public final class Class<T> implements java.io.Serializable,
* manager. * manager.
* @throws NullPointerException If {@code name} is {@code null} * @throws NullPointerException If {@code name} is {@code null}
* @since 1.1 * @since 1.1
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public URL getResource(String name) { public URL getResource(String name) {

View File

@ -227,7 +227,6 @@ import sun.security.util.SecurityConstants;
* @jls 13.1 The Form of a Binary * @jls 13.1 The Form of a Binary
* @see #resolveClass(Class) * @see #resolveClass(Class)
* @since 1.0 * @since 1.0
* @revised 9
*/ */
public abstract class ClassLoader { public abstract class ClassLoader {
@ -881,7 +880,6 @@ public abstract class ClassLoader {
* @see java.security.SecureClassLoader * @see java.security.SecureClassLoader
* *
* @since 1.1 * @since 1.1
* @revised 9
*/ */
protected final Class<?> defineClass(String name, byte[] b, int off, int len) protected final Class<?> defineClass(String name, byte[] b, int off, int len)
throws ClassFormatError throws ClassFormatError
@ -1015,8 +1013,6 @@ public abstract class ClassLoader {
* certificates than this class, or if {@code name} begins with * certificates than this class, or if {@code name} begins with
* "{@code java.}" and this class loader is not the platform * "{@code java.}" and this class loader is not the platform
* class loader or its ancestor. * class loader or its ancestor.
*
* @revised 9
*/ */
protected final Class<?> defineClass(String name, byte[] b, int off, int len, protected final Class<?> defineClass(String name, byte[] b, int off, int len,
ProtectionDomain protectionDomain) ProtectionDomain protectionDomain)
@ -1091,7 +1087,6 @@ public abstract class ClassLoader {
* @see #defineClass(String, byte[], int, int, ProtectionDomain) * @see #defineClass(String, byte[], int, int, ProtectionDomain)
* *
* @since 1.5 * @since 1.5
* @revised 9
*/ */
protected final Class<?> defineClass(String name, java.nio.ByteBuffer b, protected final Class<?> defineClass(String name, java.nio.ByteBuffer b,
ProtectionDomain protectionDomain) ProtectionDomain protectionDomain)
@ -1404,7 +1399,6 @@ public abstract class ClassLoader {
* @throws NullPointerException If {@code name} is {@code null} * @throws NullPointerException If {@code name} is {@code null}
* *
* @since 1.1 * @since 1.1
* @revised 9
*/ */
public URL getResource(String name) { public URL getResource(String name) {
Objects.requireNonNull(name); Objects.requireNonNull(name);
@ -1469,7 +1463,6 @@ public abstract class ClassLoader {
* @throws NullPointerException If {@code name} is {@code null} * @throws NullPointerException If {@code name} is {@code null}
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
public Enumeration<URL> getResources(String name) throws IOException { public Enumeration<URL> getResources(String name) throws IOException {
Objects.requireNonNull(name); Objects.requireNonNull(name);
@ -1567,7 +1560,6 @@ public abstract class ClassLoader {
* denied by the security manager. * denied by the security manager.
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
protected URL findResource(String name) { protected URL findResource(String name) {
return null; return null;
@ -1602,7 +1594,6 @@ public abstract class ClassLoader {
* If I/O errors occur * If I/O errors occur
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
protected Enumeration<URL> findResources(String name) throws IOException { protected Enumeration<URL> findResources(String name) throws IOException {
return Collections.emptyEnumeration(); return Collections.emptyEnumeration();
@ -1687,7 +1678,6 @@ public abstract class ClassLoader {
* denied by the security manager. * denied by the security manager.
* *
* @since 1.1 * @since 1.1
* @revised 9
*/ */
public static URL getSystemResource(String name) { public static URL getSystemResource(String name) {
return getSystemClassLoader().getResource(name); return getSystemClassLoader().getResource(name);
@ -1723,7 +1713,6 @@ public abstract class ClassLoader {
* If I/O errors occur * If I/O errors occur
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
public static Enumeration<URL> getSystemResources(String name) public static Enumeration<URL> getSystemResources(String name)
throws IOException throws IOException
@ -1755,7 +1744,6 @@ public abstract class ClassLoader {
* @throws NullPointerException If {@code name} is {@code null} * @throws NullPointerException If {@code name} is {@code null}
* *
* @since 1.1 * @since 1.1
* @revised 9
*/ */
public InputStream getResourceAsStream(String name) { public InputStream getResourceAsStream(String name) {
Objects.requireNonNull(name); Objects.requireNonNull(name);
@ -1788,7 +1776,6 @@ public abstract class ClassLoader {
* denied by the security manager. * denied by the security manager.
* *
* @since 1.1 * @since 1.1
* @revised 9
*/ */
public static InputStream getSystemResourceAsStream(String name) { public static InputStream getSystemResourceAsStream(String name) {
URL url = getSystemResource(name); URL url = getSystemResource(name);
@ -1948,9 +1935,6 @@ public abstract class ClassLoader {
* exception is thrown by that constructor when it is invoked. The * exception is thrown by that constructor when it is invoked. The
* underlying cause of the error can be retrieved via the * underlying cause of the error can be retrieved via the
* {@link Throwable#getCause()} method. * {@link Throwable#getCause()} method.
*
* @revised 1.4
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static ClassLoader getSystemClassLoader() { public static ClassLoader getSystemClassLoader() {
@ -2217,7 +2201,6 @@ public abstract class ClassLoader {
* *
* *
* @since 1.2 * @since 1.2
* @revised 9
* *
* @jvms 5.3 Creation and Loading * @jvms 5.3 Creation and Loading
* @see <a href="{@docRoot}/../specs/jar/jar.html#package-sealing"> * @see <a href="{@docRoot}/../specs/jar/jar.html#package-sealing">
@ -2326,7 +2309,6 @@ public abstract class ClassLoader {
* @see ClassLoader#getDefinedPackage(String) * @see ClassLoader#getDefinedPackage(String)
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
@Deprecated(since="9") @Deprecated(since="9")
protected Package getPackage(String name) { protected Package getPackage(String name) {
@ -2361,7 +2343,6 @@ public abstract class ClassLoader {
* @see ClassLoader#getDefinedPackages() * @see ClassLoader#getDefinedPackages()
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
protected Package[] getPackages() { protected Package[] getPackages() {
Stream<Package> pkgs = packages(); Stream<Package> pkgs = packages();

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -114,7 +114,6 @@ import jdk.internal.reflect.Reflection;
* @see ClassLoader#definePackage(String, String, String, String, String, String, String, URL) * @see ClassLoader#definePackage(String, String, String, String, String, String, String, URL)
* *
* @since 1.2 * @since 1.2
* @revised 9
*/ */
public class Package extends NamedPackage implements java.lang.reflect.AnnotatedElement { public class Package extends NamedPackage implements java.lang.reflect.AnnotatedElement {
/** /**
@ -211,8 +210,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* is returned if it is not known. * is returned if it is not known.
* @return the vendor that implemented this package, {@code null} * @return the vendor that implemented this package, {@code null}
* is returned if it is not known. * is returned if it is not known.
*
* @revised 9
*/ */
public String getImplementationVendor() { public String getImplementationVendor() {
return versionInfo.implVendor; return versionInfo.implVendor;
@ -355,8 +352,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* a {@code Package} for the specified class loader. * a {@code Package} for the specified class loader.
* *
* @see ClassLoader#getDefinedPackage * @see ClassLoader#getDefinedPackage
*
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
@Deprecated(since="9") @Deprecated(since="9")
@ -379,8 +374,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* class loader and its ancestors * class loader and its ancestors
* *
* @see ClassLoader#getDefinedPackages * @see ClassLoader#getDefinedPackages
*
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static Package[] getPackages() { public static Package[] getPackages() {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -118,7 +118,6 @@ public final class StackTraceElement implements java.io.Serializable {
* @throws NullPointerException if {@code declaringClass} or * @throws NullPointerException if {@code declaringClass} or
* {@code methodName} is null * {@code methodName} is null
* @since 1.5 * @since 1.5
* @revised 9
*/ */
public StackTraceElement(String declaringClass, String methodName, public StackTraceElement(String declaringClass, String methodName,
String fileName, int lineNumber) { String fileName, int lineNumber) {
@ -355,7 +354,6 @@ public final class StackTraceElement implements java.io.Serializable {
* {@link java.lang.StackWalker.StackFrame}, where an implementation may * {@link java.lang.StackWalker.StackFrame}, where an implementation may
* choose to omit some element in the returned string. * choose to omit some element in the returned string.
* *
* @revised 9
* @see Throwable#printStackTrace() * @see Throwable#printStackTrace()
*/ */
@Override @Override
@ -426,8 +424,6 @@ public final class StackTraceElement implements java.io.Serializable {
* @return true if the specified object is another * @return true if the specified object is another
* {@code StackTraceElement} instance representing the same * {@code StackTraceElement} instance representing the same
* execution point as this instance. * execution point as this instance.
*
* @revised 9
*/ */
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj==this) if (obj==this)

View File

@ -1693,8 +1693,6 @@ public class Thread implements Runnable {
* *
* @throws SecurityException * @throws SecurityException
* if the current thread cannot modify this thread * if the current thread cannot modify this thread
*
* @revised 6.0, 14
*/ */
public void interrupt() { public void interrupt() {
if (this != Thread.currentThread()) { if (this != Thread.currentThread()) {
@ -1726,7 +1724,6 @@ public class Thread implements Runnable {
* @return {@code true} if the current thread has been interrupted; * @return {@code true} if the current thread has been interrupted;
* {@code false} otherwise. * {@code false} otherwise.
* @see #isInterrupted() * @see #isInterrupted()
* @revised 6.0, 14
*/ */
public static boolean interrupted() { public static boolean interrupted() {
return currentThread().getAndClearInterrupt(); return currentThread().getAndClearInterrupt();
@ -1739,7 +1736,6 @@ public class Thread implements Runnable {
* @return {@code true} if this thread has been interrupted; * @return {@code true} if this thread has been interrupted;
* {@code false} otherwise. * {@code false} otherwise.
* @see #interrupted() * @see #interrupted()
* @revised 6.0, 14
*/ */
public boolean isInterrupted() { public boolean isInterrupted() {
return interrupted; return interrupted;

View File

@ -175,8 +175,6 @@ public class MethodHandles {
* Also, it cannot access * Also, it cannot access
* <a href="MethodHandles.Lookup.html#callsens">caller sensitive methods</a>. * <a href="MethodHandles.Lookup.html#callsens">caller sensitive methods</a>.
* @return a lookup object which is trusted minimally * @return a lookup object which is trusted minimally
*
* @revised 9
*/ */
public static Lookup publicLookup() { public static Lookup publicLookup() {
return Lookup.PUBLIC_LOOKUP; return Lookup.PUBLIC_LOOKUP;
@ -1437,8 +1435,6 @@ public class MethodHandles {
* so that there can be a secure foundation for lookups. * so that there can be a secure foundation for lookups.
* Nearly all other methods in the JSR 292 API rely on lookup * Nearly all other methods in the JSR 292 API rely on lookup
* objects to check access requests. * objects to check access requests.
*
* @revised 9
*/ */
public static final public static final
class Lookup { class Lookup {
@ -1621,8 +1617,6 @@ public class MethodHandles {
* @return the lookup modes, which limit the kinds of access performed by this lookup object * @return the lookup modes, which limit the kinds of access performed by this lookup object
* @see #in * @see #in
* @see #dropLookupMode * @see #dropLookupMode
*
* @revised 9
*/ */
public int lookupModes() { public int lookupModes() {
return allowedModes & ALL_MODES; return allowedModes & ALL_MODES;
@ -1703,7 +1697,6 @@ public class MethodHandles {
* @throws IllegalArgumentException if {@code requestedLookupClass} is a primitive type or void or array class * @throws IllegalArgumentException if {@code requestedLookupClass} is a primitive type or void or array class
* @throws NullPointerException if the argument is null * @throws NullPointerException if the argument is null
* *
* @revised 9
* @see #accessClass(Class) * @see #accessClass(Class)
* @see <a href="#cross-module-lookup">Cross-module lookups</a> * @see <a href="#cross-module-lookup">Cross-module lookups</a>
*/ */
@ -2599,8 +2592,6 @@ public class MethodHandles {
* because it requires a direct subclass relationship between * because it requires a direct subclass relationship between
* caller and callee.) * caller and callee.)
* @see #in * @see #in
*
* @revised 9
*/ */
@Override @Override
public String toString() { public String toString() {

View File

@ -74,7 +74,6 @@ import sun.security.util.SecurityConstants;
* @spec jni/index.html Java Native Interface Specification * @spec jni/index.html Java Native Interface Specification
* @jls 6.6 Access Control * @jls 6.6 Access Control
* @since 1.2 * @since 1.2
* @revised 9
*/ */
public class AccessibleObject implements AnnotatedElement { public class AccessibleObject implements AnnotatedElement {
static { static {
@ -119,7 +118,6 @@ public class AccessibleObject implements AnnotatedElement {
* java.lang.Class} * java.lang.Class}
* @see SecurityManager#checkPermission * @see SecurityManager#checkPermission
* @see ReflectPermission * @see ReflectPermission
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static void setAccessible(AccessibleObject[] array, boolean flag) { public static void setAccessible(AccessibleObject[] array, boolean flag) {
@ -207,7 +205,6 @@ public class AccessibleObject implements AnnotatedElement {
* @spec jni/index.html Java Native Interface Specification * @spec jni/index.html Java Native Interface Specification
* @see #trySetAccessible * @see #trySetAccessible
* @see java.lang.invoke.MethodHandles#privateLookupIn * @see java.lang.invoke.MethodHandles#privateLookupIn
* @revised 9
*/ */
@CallerSensitive // overrides in Method/Field/Constructor are @CS @CallerSensitive // overrides in Method/Field/Constructor are @CS
public void setAccessible(boolean flag) { public void setAccessible(boolean flag) {
@ -424,8 +421,6 @@ public class AccessibleObject implements AnnotatedElement {
* This method may return {@code false} on a reflected object that is * This method may return {@code false} on a reflected object that is
* accessible to the caller. To test if this reflected object is accessible, * accessible to the caller. To test if this reflected object is accessible,
* it should use {@link #canAccess(Object)}. * it should use {@link #canAccess(Object)}.
*
* @revised 9
*/ */
@Deprecated(since="9") @Deprecated(since="9")
public boolean isAccessible() { public boolean isAccessible() {

View File

@ -292,7 +292,6 @@ import static java.lang.module.ModuleDescriptor.Modifier.SYNTHETIC;
* @author Peter Jones * @author Peter Jones
* @see InvocationHandler * @see InvocationHandler
* @since 1.3 * @since 1.3
* @revised 9
*/ */
public class Proxy implements java.io.Serializable { public class Proxy implements java.io.Serializable {
@java.io.Serial @java.io.Serial
@ -382,7 +381,6 @@ public class Proxy implements java.io.Serializable {
* to create a proxy instance instead. * to create a proxy instance instead.
* *
* @see <a href="#membership">Package and Module Membership of Proxy Class</a> * @see <a href="#membership">Package and Module Membership of Proxy Class</a>
* @revised 9
*/ */
@Deprecated @Deprecated
@CallerSensitive @CallerSensitive
@ -1015,7 +1013,6 @@ public class Proxy implements java.io.Serializable {
* {@code null} * {@code null}
* *
* @see <a href="#membership">Package and Module Membership of Proxy Class</a> * @see <a href="#membership">Package and Module Membership of Proxy Class</a>
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static Object newProxyInstance(ClassLoader loader, public static Object newProxyInstance(ClassLoader loader,
@ -1100,8 +1097,6 @@ public class Proxy implements java.io.Serializable {
* @return {@code true} if the class is a proxy class and * @return {@code true} if the class is a proxy class and
* {@code false} otherwise * {@code false} otherwise
* @throws NullPointerException if {@code cl} is {@code null} * @throws NullPointerException if {@code cl} is {@code null}
*
* @revised 9
*/ */
public static boolean isProxyClass(Class<?> cl) { public static boolean isProxyClass(Class<?> cl) {
return Proxy.class.isAssignableFrom(cl) && ProxyBuilder.isProxyClass(cl); return Proxy.class.isAssignableFrom(cl) && ProxyBuilder.isProxyClass(cl);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -94,6 +94,5 @@
* @jvms 5.3.1 Loading Using the Bootstrap Class Loader * @jvms 5.3.1 Loading Using the Bootstrap Class Loader
* @jvms 5.3.2 Loading Using a User-defined Class Loader * @jvms 5.3.2 Loading Using a User-defined Class Loader
* @since 1.1 * @since 1.1
* @revised 9
*/ */
package java.lang.reflect; package java.lang.reflect;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1995, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -656,7 +656,6 @@ public class DatagramSocket implements java.io.Closeable {
* @see java.net.DatagramPacket * @see java.net.DatagramPacket
* @see SecurityManager#checkMulticast(InetAddress) * @see SecurityManager#checkMulticast(InetAddress)
* @see SecurityManager#checkConnect * @see SecurityManager#checkConnect
* @revised 1.4
*/ */
public void send(DatagramPacket p) throws IOException { public void send(DatagramPacket p) throws IOException {
delegate().send(p); delegate().send(p);
@ -708,7 +707,6 @@ public class DatagramSocket implements java.io.Closeable {
* and the channel is in non-blocking mode. * and the channel is in non-blocking mode.
* @see java.net.DatagramPacket * @see java.net.DatagramPacket
* @see java.net.DatagramSocket * @see java.net.DatagramSocket
* @revised 1.4
*/ */
public void receive(DatagramPacket p) throws IOException { public void receive(DatagramPacket p) throws IOException {
delegate().receive(p); delegate().receive(p);
@ -1082,8 +1080,6 @@ public class DatagramSocket implements java.io.Closeable {
* *
* <p> If this socket has an associated channel then the channel is closed * <p> If this socket has an associated channel then the channel is closed
* as well. * as well.
*
* @revised 1.4
*/ */
public void close() { public void close() {
delegate().close(); delegate().close();

View File

@ -125,7 +125,6 @@ public class ServerSocket implements java.io.Closeable {
* Creates an unbound server socket. * Creates an unbound server socket.
* *
* @throws IOException IO error when opening the socket. * @throws IOException IO error when opening the socket.
* @revised 1.4
*/ */
public ServerSocket() throws IOException { public ServerSocket() throws IOException {
this.impl = createImpl(); this.impl = createImpl();
@ -532,7 +531,6 @@ public class ServerSocket implements java.io.Closeable {
* *
* @return the new Socket * @return the new Socket
* @see SecurityManager#checkAccept * @see SecurityManager#checkAccept
* @revised 1.4
*/ */
public Socket accept() throws IOException { public Socket accept() throws IOException {
if (isClosed()) if (isClosed())
@ -575,7 +573,6 @@ public class ServerSocket implements java.io.Closeable {
* to accept a connection with the given socket * to accept a connection with the given socket
* *
* @since 1.1 * @since 1.1
* @revised 1.4
*/ */
protected final void implAccept(Socket s) throws IOException { protected final void implAccept(Socket s) throws IOException {
SocketImpl si = s.impl(); SocketImpl si = s.impl();
@ -741,7 +738,6 @@ public class ServerSocket implements java.io.Closeable {
* as well. * as well.
* *
* @throws IOException if an I/O error occurs when closing the socket. * @throws IOException if an I/O error occurs when closing the socket.
* @revised 1.4
*/ */
public void close() throws IOException { public void close() throws IOException {
synchronized (socketLock) { synchronized (socketLock) {

View File

@ -176,7 +176,6 @@ public class Socket implements java.io.Closeable {
* socket implementation is created. * socket implementation is created.
* *
* @since 1.1 * @since 1.1
* @revised 1.4
*/ */
public Socket() { public Socket() {
this.impl = createImpl(); this.impl = createImpl();
@ -1051,8 +1050,6 @@ public class Socket implements java.io.Closeable {
* input stream, the socket is closed, the socket is * input stream, the socket is closed, the socket is
* not connected, or the socket input has been shutdown * not connected, or the socket input has been shutdown
* using {@link #shutdownInput()} * using {@link #shutdownInput()}
*
* @revised 1.4
*/ */
public InputStream getInputStream() throws IOException { public InputStream getInputStream() throws IOException {
int s = state; int s = state;
@ -1149,7 +1146,6 @@ public class Socket implements java.io.Closeable {
* @return an output stream for writing bytes to this socket. * @return an output stream for writing bytes to this socket.
* @throws IOException if an I/O error occurs when creating the * @throws IOException if an I/O error occurs when creating the
* output stream or if the socket is not connected. * output stream or if the socket is not connected.
* @revised 1.4
*/ */
public OutputStream getOutputStream() throws IOException { public OutputStream getOutputStream() throws IOException {
int s = state; int s = state;
@ -1717,7 +1713,6 @@ public class Socket implements java.io.Closeable {
* as well. * as well.
* *
* @throws IOException if an I/O error occurs when closing this socket. * @throws IOException if an I/O error occurs when closing this socket.
* @revised 1.4
* @see #isClosed * @see #isClosed
*/ */
public void close() throws IOException { public void close() throws IOException {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -539,8 +539,6 @@ public class URLClassLoader extends SecureClassLoader implements Closeable {
* @throws IllegalArgumentException if the package name is * @throws IllegalArgumentException if the package name is
* already defined by this class loader * already defined by this class loader
* @return the newly defined {@code Package} object * @return the newly defined {@code Package} object
*
* @revised 9
*/ */
protected Package definePackage(String name, Manifest man, URL url) { protected Package definePackage(String name, Manifest man, URL url) {
String specTitle = null, specVersion = null, specVendor = null; String specTitle = null, specVersion = null, specVendor = null;

View File

@ -373,7 +373,6 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
* @see MissingResourceException * @see MissingResourceException
* @see ResourceBundleProvider * @see ResourceBundleProvider
* @since 1.1 * @since 1.1
* @revised 9
*/ */
public abstract class ResourceBundle { public abstract class ResourceBundle {
@ -894,7 +893,6 @@ public abstract class ResourceBundle {
* @throws UnsupportedOperationException * @throws UnsupportedOperationException
* if this method is called in a named module * if this method is called in a named module
* @since 1.6 * @since 1.6
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static final ResourceBundle getBundle(String baseName, public static final ResourceBundle getBundle(String baseName,
@ -1054,7 +1052,6 @@ public abstract class ResourceBundle {
* @throws UnsupportedOperationException * @throws UnsupportedOperationException
* if this method is called in a named module * if this method is called in a named module
* @since 1.6 * @since 1.6
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static final ResourceBundle getBundle(String baseName, Locale targetLocale, public static final ResourceBundle getBundle(String baseName, Locale targetLocale,
@ -1267,7 +1264,6 @@ public abstract class ResourceBundle {
* @throws MissingResourceException * @throws MissingResourceException
* if no resource bundle for the specified base name can be found * if no resource bundle for the specified base name can be found
* @since 1.2 * @since 1.2
* @revised 9
* @see <a href="#resource-bundle-modules">Resource Bundles and Named Modules</a> * @see <a href="#resource-bundle-modules">Resource Bundles and Named Modules</a>
*/ */
@CallerSensitive @CallerSensitive
@ -1492,7 +1488,6 @@ public abstract class ResourceBundle {
* @throws UnsupportedOperationException * @throws UnsupportedOperationException
* if this method is called in a named module * if this method is called in a named module
* @since 1.6 * @since 1.6
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static ResourceBundle getBundle(String baseName, Locale targetLocale, public static ResourceBundle getBundle(String baseName, Locale targetLocale,
@ -2235,7 +2230,6 @@ public abstract class ResourceBundle {
* by the caller's module. * by the caller's module.
* *
* @since 1.6 * @since 1.6
* @revised 9
* @see ResourceBundle.Control#getTimeToLive(String,Locale) * @see ResourceBundle.Control#getTimeToLive(String,Locale)
*/ */
@CallerSensitive @CallerSensitive
@ -2524,7 +2518,6 @@ public abstract class ResourceBundle {
* of {@link ResourceBundleControlProvider} are ignored in named modules. * of {@link ResourceBundleControlProvider} are ignored in named modules.
* *
* @since 1.6 * @since 1.6
* @revised 9
* @see java.util.spi.ResourceBundleProvider * @see java.util.spi.ResourceBundleProvider
*/ */
public static class Control { public static class Control {
@ -3150,7 +3143,6 @@ public abstract class ResourceBundle {
* if an error occurred when reading resources using * if an error occurred when reading resources using
* any I/O operations * any I/O operations
* @see java.util.spi.ResourceBundleProvider#getBundle(String, Locale) * @see java.util.spi.ResourceBundleProvider#getBundle(String, Locale)
* @revised 9
*/ */
public ResourceBundle newBundle(String baseName, Locale locale, String format, public ResourceBundle newBundle(String baseName, Locale locale, String format,
ClassLoader loader, boolean reload) ClassLoader loader, boolean reload)

View File

@ -386,7 +386,6 @@ import jdk.internal.reflect.Reflection;
* *
* @author Mark Reinhold * @author Mark Reinhold
* @since 1.6 * @since 1.6
* @revised 9
*/ */
public final class ServiceLoader<S> public final class ServiceLoader<S>
@ -1355,8 +1354,6 @@ public final class ServiceLoader<S>
* *
* @return An iterator that lazily loads providers for this loader's * @return An iterator that lazily loads providers for this loader's
* service * service
*
* @revised 9
*/ */
public Iterator<S> iterator() { public Iterator<S> iterator() {
@ -1640,8 +1637,6 @@ public final class ServiceLoader<S>
* if the service type is not accessible to the caller or the * if the service type is not accessible to the caller or the
* caller is in an explicit module and its module descriptor does * caller is in an explicit module and its module descriptor does
* not declare that it uses {@code service} * not declare that it uses {@code service}
*
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
@SuppressWarnings("doclint:reference") // cross-module links @SuppressWarnings("doclint:reference") // cross-module links
@ -1686,8 +1681,6 @@ public final class ServiceLoader<S>
* if the service type is not accessible to the caller or the * if the service type is not accessible to the caller or the
* caller is in an explicit module and its module descriptor does * caller is in an explicit module and its module descriptor does
* not declare that it uses {@code service} * not declare that it uses {@code service}
*
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static <S> ServiceLoader<S> load(Class<S> service) { public static <S> ServiceLoader<S> load(Class<S> service) {
@ -1721,8 +1714,6 @@ public final class ServiceLoader<S>
* if the service type is not accessible to the caller or the * if the service type is not accessible to the caller or the
* caller is in an explicit module and its module descriptor does * caller is in an explicit module and its module descriptor does
* not declare that it uses {@code service} * not declare that it uses {@code service}
*
* @revised 9
*/ */
@CallerSensitive @CallerSensitive
public static <S> ServiceLoader<S> loadInstalled(Class<S> service) { public static <S> ServiceLoader<S> loadInstalled(Class<S> service) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -44,7 +44,6 @@ import java.util.ResourceBundle;
* *
* @author Masayoshi Okutsu * @author Masayoshi Okutsu
* @since 1.8 * @since 1.8
* @revised 9
* @see ResourceBundle#getBundle(String, java.util.Locale, ClassLoader, ResourceBundle.Control) * @see ResourceBundle#getBundle(String, java.util.Locale, ClassLoader, ResourceBundle.Control)
* ResourceBundle.getBundle * ResourceBundle.getBundle
* @see java.util.ServiceLoader#load(Class) * @see java.util.ServiceLoader#load(Class)

View File

@ -153,7 +153,6 @@ public interface Element extends AnnotatedConstruct {
* @see VariableElement#getSimpleName * @see VariableElement#getSimpleName
* @see ModuleElement#getSimpleName * @see ModuleElement#getSimpleName
* @see RecordComponentElement#getSimpleName * @see RecordComponentElement#getSimpleName
* @revised 9
*/ */
Name getSimpleName(); Name getSimpleName();
@ -194,7 +193,6 @@ public interface Element extends AnnotatedConstruct {
* *
* @return the enclosing element, or {@code null} if there is none * @return the enclosing element, or {@code null} if there is none
* @see Elements#getPackageOf * @see Elements#getPackageOf
* @revised 9
*/ */
Element getEnclosingElement(); Element getEnclosingElement();
@ -231,7 +229,6 @@ public interface Element extends AnnotatedConstruct {
* @jls 8.8.9 Default Constructor * @jls 8.8.9 Default Constructor
* @jls 8.9 Enum Classes * @jls 8.9 Enum Classes
* @jls 8.10 Record Classes * @jls 8.10 Record Classes
* @revised 9
*/ */
List<? extends Element> getEnclosedElements(); List<? extends Element> getEnclosedElements();

View File

@ -127,8 +127,6 @@ public interface PackageElement extends Element, QualifiedNameable {
* processing environment configured for a {@linkplain * processing environment configured for a {@linkplain
* javax.annotation.processing.ProcessingEnvironment#getSourceVersion * javax.annotation.processing.ProcessingEnvironment#getSourceVersion
* source version} without modules. * source version} without modules.
*
* @revised 9
*/ */
@Override @Override
Element getEnclosingElement(); Element getEnclosingElement();

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006, 2022, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -120,8 +120,6 @@ public enum StandardLocation implements Location {
* *
* @param name a name * @param name a name
* @return a location * @return a location
*
* @revised 9
*/ */
public static Location locationFor(final String name) { public static Location locationFor(final String name) {
if (locations.isEmpty()) { if (locations.isEmpty()) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -190,8 +190,6 @@ public interface ClassFileTransformer {
* if the input does not represent a well-formed class file * if the input does not represent a well-formed class file
* @return a well-formed class file buffer (the result of the transform), * @return a well-formed class file buffer (the result of the transform),
* or {@code null} if no transform is performed * or {@code null} if no transform is performed
*
* @revised 9
*/ */
default byte[] default byte[]
transform( ClassLoader loader, transform( ClassLoader loader,

View File

@ -327,8 +327,6 @@
* transformed classes to read the unnamed module of both class loaders. * transformed classes to read the unnamed module of both class loaders.
* *
* @since 1.5 * @since 1.5
* @revised 1.6
* @revised 9
*/ */
package java.lang.instrument; package java.lang.instrument;

View File

@ -885,8 +885,6 @@ public class ThreadInfo {
* @return a {@code ThreadInfo} object represented * @return a {@code ThreadInfo} object represented
* by {@code cd} if {@code cd} is not {@code null}; * by {@code cd} if {@code cd} is not {@code null};
* {@code null} otherwise. * {@code null} otherwise.
*
* @revised 9
*/ */
public static ThreadInfo from(CompositeData cd) { public static ThreadInfo from(CompositeData cd) {
if (cd == null) { if (cd == null) {