8255262: Remove use of legacy custom @spec tag

Reviewed-by: lancea, mr, iris, alanb, darcy, mchung
This commit is contained in:
Jonathan Gibbons 2020-10-22 19:42:01 +00:00
parent a0b687bfb2
commit 0aa3c92577
69 changed files with 0 additions and 209 deletions

View file

@ -342,7 +342,6 @@ public class FileInputStream extends InputStream
* @throws IOException if an I/O error occurs.
*
* @revised 1.4
* @spec JSR-51
*/
public void close() throws IOException {
if (closed) {
@ -400,7 +399,6 @@ public class FileInputStream extends InputStream
* @return the file channel associated with this file input stream
*
* @since 1.4
* @spec JSR-51
*/
public FileChannel getChannel() {
FileChannel fc = this.channel;

View file

@ -366,7 +366,6 @@ public class FileOutputStream extends OutputStream
* @throws IOException if an I/O error occurs.
*
* @revised 1.4
* @spec JSR-51
*/
public void close() throws IOException {
if (closed) {
@ -425,7 +424,6 @@ public class FileOutputStream extends OutputStream
* @return the file channel associated with this file output stream
*
* @since 1.4
* @spec JSR-51
*/
public FileChannel getChannel() {
FileChannel fc = this.channel;

View file

@ -103,7 +103,6 @@ public class InputStreamReader extends Reader {
* @param cs A charset
*
* @since 1.4
* @spec JSR-51
*/
public InputStreamReader(InputStream in, Charset cs) {
super(in);
@ -119,7 +118,6 @@ public class InputStreamReader extends Reader {
* @param dec A charset decoder
*
* @since 1.4
* @spec JSR-51
*/
public InputStreamReader(InputStream in, CharsetDecoder dec) {
super(in);
@ -146,7 +144,6 @@ public class InputStreamReader extends Reader {
* @see java.nio.charset.Charset
*
* @revised 1.4
* @spec JSR-51
*/
public String getEncoding() {
return sd.getEncoding();

View file

@ -120,7 +120,6 @@ public class OutputStreamWriter extends Writer {
* A charset
*
* @since 1.4
* @spec JSR-51
*/
public OutputStreamWriter(OutputStream out, Charset cs) {
super(out);
@ -139,7 +138,6 @@ public class OutputStreamWriter extends Writer {
* A charset encoder
*
* @since 1.4
* @spec JSR-51
*/
public OutputStreamWriter(OutputStream out, CharsetEncoder enc) {
super(out);
@ -166,7 +164,6 @@ public class OutputStreamWriter extends Writer {
* @see java.nio.charset.Charset
*
* @revised 1.4
* @spec JSR-51
*/
public String getEncoding() {
return se.getEncoding();

View file

@ -121,7 +121,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @see java.lang.SecurityManager#checkRead(java.lang.String)
* @see java.lang.SecurityManager#checkWrite(java.lang.String)
* @revised 1.4
* @spec JSR-51
*/
public RandomAccessFile(String name, String mode)
throws FileNotFoundException
@ -208,7 +207,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @see java.lang.SecurityManager#checkWrite(java.lang.String)
* @see java.nio.channels.FileChannel#force(boolean)
* @revised 1.4
* @spec JSR-51
*/
public RandomAccessFile(File file, String mode)
throws FileNotFoundException
@ -293,7 +291,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @return the file channel associated with this file
*
* @since 1.4
* @spec JSR-51
*/
public final FileChannel getChannel() {
FileChannel fc = this.channel;
@ -637,7 +634,6 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
* @throws IOException if an I/O error occurs.
*
* @revised 1.4
* @spec JSR-51
*/
public void close() throws IOException {
if (closed) {

View file

@ -1046,7 +1046,6 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence {
* if {@code start} or {@code end} are negative,
* if {@code end} is greater than {@code length()},
* or if {@code start} is greater than {@code end}
* @spec JSR-51
*/
@Override
public CharSequence subSequence(int start, int end) {

View file

@ -54,7 +54,6 @@ import java.util.stream.StreamSupport;
*
* @author Mike McCloskey
* @since 1.4
* @spec JSR-51
*/
public interface CharSequence {

View file

@ -520,7 +520,6 @@ public final class Class<T> implements java.io.Serializable,
* @jls 12.2 Loading of Classes and Interfaces
* @jls 12.3 Linking of Classes and Interfaces
* @since 9
* @spec JPMS
*/
@CallerSensitive
public static Class<?> forName(Module module, String name) {
@ -918,7 +917,6 @@ public final class Class<T> implements java.io.Serializable,
* @return the module that this class or interface is a member of
*
* @since 9
* @spec JPMS
*/
public Module getModule() {
return module;
@ -1034,7 +1032,6 @@ public final class Class<T> implements java.io.Serializable,
*
* @return the package of this class.
* @revised 9
* @spec JPMS
*/
public Package getPackage() {
if (isPrimitive() || isArray()) {
@ -1069,7 +1066,6 @@ public final class Class<T> implements java.io.Serializable,
* @return the fully qualified package name
*
* @since 9
* @spec JPMS
* @jls 6.7 Fully Qualified Names
*/
public String getPackageName() {
@ -2765,7 +2761,6 @@ public final class Class<T> implements java.io.Serializable,
* @see Module#getResourceAsStream(String)
* @since 1.1
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public InputStream getResourceAsStream(String name) {
@ -2862,7 +2857,6 @@ public final class Class<T> implements java.io.Serializable,
* @throws NullPointerException If {@code name} is {@code null}
* @since 1.1
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public URL getResource(String name) {

View file

@ -227,7 +227,6 @@ import sun.security.util.SecurityConstants;
* @see #resolveClass(Class)
* @since 1.0
* @revised 9
* @spec JPMS
*/
public abstract class ClassLoader {
@ -425,7 +424,6 @@ public abstract class ClassLoader {
* method doesn't allow creation of a new class loader.
*
* @since 9
* @spec JPMS
*/
protected ClassLoader(String name, ClassLoader parent) {
this(checkCreateClassLoader(name), name, parent);
@ -488,7 +486,6 @@ public abstract class ClassLoader {
* this class loader is not named.
*
* @since 9
* @spec JPMS
*/
public String getName() {
return name;
@ -743,7 +740,6 @@ public abstract class ClassLoader {
* if the class could not be found.
*
* @since 9
* @spec JPMS
*/
protected Class<?> findClass(String moduleName, String name) {
if (moduleName == null) {
@ -869,7 +865,6 @@ public abstract class ClassLoader {
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
protected final Class<?> defineClass(String name, byte[] b, int off, int len)
throws ClassFormatError
@ -1005,7 +1000,6 @@ public abstract class ClassLoader {
* class loader or its ancestor.
*
* @revised 9
* @spec JPMS
*/
protected final Class<?> defineClass(String name, byte[] b, int off, int len,
ProtectionDomain protectionDomain)
@ -1081,7 +1075,6 @@ public abstract class ClassLoader {
*
* @since 1.5
* @revised 9
* @spec JPMS
*/
protected final Class<?> defineClass(String name, java.nio.ByteBuffer b,
ProtectionDomain protectionDomain)
@ -1344,7 +1337,6 @@ public abstract class ClassLoader {
*
* @see java.lang.module.ModuleReader#find(String)
* @since 9
* @spec JPMS
*/
protected URL findResource(String moduleName, String name) throws IOException {
if (moduleName == null) {
@ -1396,7 +1388,6 @@ public abstract class ClassLoader {
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
public URL getResource(String name) {
Objects.requireNonNull(name);
@ -1462,7 +1453,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
public Enumeration<URL> getResources(String name) throws IOException {
Objects.requireNonNull(name);
@ -1561,7 +1551,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
protected URL findResource(String name) {
return null;
@ -1597,7 +1586,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
protected Enumeration<URL> findResources(String name) throws IOException {
return Collections.emptyEnumeration();
@ -1669,7 +1657,6 @@ public abstract class ClassLoader {
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
public static URL getSystemResource(String name) {
return getSystemClassLoader().getResource(name);
@ -1706,7 +1693,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
public static Enumeration<URL> getSystemResources(String name)
throws IOException
@ -1739,7 +1725,6 @@ public abstract class ClassLoader {
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
public InputStream getResourceAsStream(String name) {
Objects.requireNonNull(name);
@ -1773,7 +1758,6 @@ public abstract class ClassLoader {
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
public static InputStream getSystemResourceAsStream(String name) {
URL url = getSystemResource(name);
@ -1824,7 +1808,6 @@ public abstract class ClassLoader {
*
* @see Module#isNamed()
* @since 9
* @spec JPMS
*/
public final Module getUnnamedModule() {
return unnamedModule;
@ -1848,7 +1831,6 @@ public abstract class ClassLoader {
* {@link RuntimePermission}{@code ("getClassLoader")}
*
* @since 9
* @spec JPMS
*/
@CallerSensitive
public static ClassLoader getPlatformClassLoader() {
@ -1936,7 +1918,6 @@ public abstract class ClassLoader {
*
* @revised 1.4
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static ClassLoader getSystemClassLoader() {
@ -2202,7 +2183,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*
* @jvms 5.3 Creation and Loading
* @see <a href="{@docRoot}/../specs/jar/jar.html#package-sealing">
@ -2241,7 +2221,6 @@ public abstract class ClassLoader {
* @jvms 5.3 Creation and Loading
*
* @since 9
* @spec JPMS
*/
public final Package getDefinedPackage(String name) {
Objects.requireNonNull(name, "name cannot be null");
@ -2268,7 +2247,6 @@ public abstract class ClassLoader {
* @jvms 5.3 Creation and Loading
*
* @since 9
* @spec JPMS
*/
public final Package[] getDefinedPackages() {
return packages().toArray(Package[]::new);
@ -2314,7 +2292,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
@Deprecated(since="9")
protected Package getPackage(String name) {
@ -2350,7 +2327,6 @@ public abstract class ClassLoader {
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
protected Package[] getPackages() {
Stream<Package> pkgs = packages();

View file

@ -29,7 +29,6 @@ package java.lang;
* Thrown to indicate that a method has been called by an inappropriate caller.
*
* @since 9
* @spec JPMS
* @see StackWalker#getCallerClass
*/
public class IllegalCallerException extends RuntimeException {

View file

@ -30,7 +30,6 @@ package java.lang;
*
* @see ModuleLayer
* @since 9
* @spec JPMS
*/
public class LayerInstantiationException extends RuntimeException {
@java.io.Serial

View file

@ -95,7 +95,6 @@ import sun.security.util.SecurityConstants;
* be thrown. </p>
*
* @since 9
* @spec JPMS
* @see Class#getModule()
*/

View file

@ -142,7 +142,6 @@ import sun.security.util.SecurityConstants;
* }</pre>
*
* @since 9
* @spec JPMS
* @see Module#getLayer()
*/
@ -193,7 +192,6 @@ public final class ModuleLayer {
* should never be shared with untrusted code.
*
* @since 9
* @spec JPMS
*/
public static final class Controller {
private final ModuleLayer layer;

View file

@ -115,7 +115,6 @@ import jdk.internal.reflect.Reflection;
*
* @since 1.2
* @revised 9
* @spec JPMS
*/
public class Package extends NamedPackage implements java.lang.reflect.AnnotatedElement {
/**
@ -214,7 +213,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* is returned if it is not known.
*
* @revised 9
* @spec JPMS
*/
public String getImplementationVendor() {
return versionInfo.implVendor;
@ -344,7 +342,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* @see ClassLoader#getDefinedPackage
*
* @revised 9
* @spec JPMS
*/
@CallerSensitive
@Deprecated(since="9")
@ -369,7 +366,6 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
* @see ClassLoader#getDefinedPackages
*
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static Package[] getPackages() {

View file

@ -115,7 +115,6 @@ public final class StackTraceElement implements java.io.Serializable {
* {@code methodName} is null
* @since 1.5
* @revised 9
* @spec JPMS
*/
public StackTraceElement(String declaringClass, String methodName,
String fileName, int lineNumber) {
@ -152,7 +151,6 @@ public final class StackTraceElement implements java.io.Serializable {
* or {@code methodName} is {@code null}
*
* @since 9
* @spec JPMS
*/
public StackTraceElement(String classLoaderName,
String moduleName, String moduleVersion,
@ -212,7 +210,6 @@ public final class StackTraceElement implements java.io.Serializable {
* point represented by this stack trace element; {@code null}
* if the module name is not available.
* @since 9
* @spec JPMS
* @see Module#getName()
*/
public String getModuleName() {
@ -227,7 +224,6 @@ public final class StackTraceElement implements java.io.Serializable {
* point represented by this stack trace element; {@code null}
* if the module version is not available.
* @since 9
* @spec JPMS
* @see java.lang.module.ModuleDescriptor.Version
*/
public String getModuleVersion() {
@ -243,7 +239,6 @@ public final class StackTraceElement implements java.io.Serializable {
* if the class loader is not named.
*
* @since 9
* @spec JPMS
* @see java.lang.ClassLoader#getName()
*/
public String getClassLoaderName() {
@ -358,7 +353,6 @@ public final class StackTraceElement implements java.io.Serializable {
* choose to omit some element in the returned string.
*
* @revised 9
* @spec JPMS
* @see Throwable#printStackTrace()
*/
public String toString() {
@ -408,7 +402,6 @@ public final class StackTraceElement implements java.io.Serializable {
* execution point as this instance.
*
* @revised 9
* @spec JPMS
*/
public boolean equals(Object obj) {
if (obj==this)

View file

@ -1940,7 +1940,6 @@ public final class String
* or if {@code beginIndex} is greater than {@code endIndex}
*
* @since 1.4
* @spec JSR-51
*/
public CharSequence subSequence(int beginIndex, int endIndex) {
return this.substring(beginIndex, endIndex);
@ -2038,7 +2037,6 @@ public final class String
* @see java.util.regex.Pattern
*
* @since 1.4
* @spec JSR-51
*/
public boolean matches(String regex) {
return Pattern.matches(regex, this);
@ -2095,7 +2093,6 @@ public final class String
* @see java.util.regex.Pattern
*
* @since 1.4
* @spec JSR-51
*/
public String replaceFirst(String regex, String replacement) {
return Pattern.compile(regex).matcher(this).replaceFirst(replacement);
@ -2140,7 +2137,6 @@ public final class String
* @see java.util.regex.Pattern
*
* @since 1.4
* @spec JSR-51
*/
public String replaceAll(String regex, String replacement) {
return Pattern.compile(regex).matcher(this).replaceAll(replacement);
@ -2301,7 +2297,6 @@ public final class String
* @see java.util.regex.Pattern
*
* @since 1.4
* @spec JSR-51
*/
public String[] split(String regex, int limit) {
/* fastpath if the regex is a
@ -2399,7 +2394,6 @@ public final class String
* @see java.util.regex.Pattern
*
* @since 1.4
* @spec JSR-51
*/
public String[] split(String regex) {
return split(regex, 0);

View file

@ -981,7 +981,6 @@ public class Thread implements Runnable {
* if the current thread cannot modify this thread
*
* @revised 6.0, 14
* @spec JSR-51
*/
public void interrupt() {
if (this != Thread.currentThread()) {

View file

@ -153,7 +153,6 @@ public class MethodHandles {
* @return a lookup object which is trusted minimally
*
* @revised 9
* @spec JPMS
*/
public static Lookup publicLookup() {
return Lookup.PUBLIC_LOOKUP;
@ -217,7 +216,6 @@ public class MethodHandles {
* @throws SecurityException if denied by the security manager
* @throws IllegalAccessException if any of the other access checks specified above fails
* @since 9
* @spec JPMS
* @see Lookup#dropLookupMode
* @see <a href="MethodHandles.Lookup.html#cross-module-lookup">Cross-module lookups</a>
*/
@ -1330,7 +1328,6 @@ public class MethodHandles {
* previous lookup class} is always {@code null}.
*
* @since 9
* @spec JPMS
*/
public static final int MODULE = PACKAGE << 1;
@ -1349,7 +1346,6 @@ public class MethodHandles {
* previous lookup class} is always {@code null}.
*
* @since 9
* @spec JPMS
* @see #publicLookup()
*/
public static final int UNCONDITIONAL = PACKAGE << 2;
@ -1438,7 +1434,6 @@ public class MethodHandles {
* @see #dropLookupMode
*
* @revised 9
* @spec JPMS
*/
public int lookupModes() {
return allowedModes & ALL_MODES;
@ -1518,7 +1513,6 @@ public class MethodHandles {
* @throws NullPointerException if the argument is null
*
* @revised 9
* @spec JPMS
* @see #accessClass(Class)
* @see <a href="#cross-module-lookup">Cross-module lookups</a>
*/
@ -1665,7 +1659,6 @@ public class MethodHandles {
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
* @throws NullPointerException if {@code bytes} is {@code null}
* @since 9
* @spec JPMS
* @see Lookup#privateLookupIn
* @see Lookup#dropLookupMode
* @see ClassLoader#defineClass(String,byte[],int,int,ProtectionDomain)
@ -2317,7 +2310,6 @@ public class MethodHandles {
* @see #in
*
* @revised 9
* @spec JPMS
*/
@Override
public String toString() {

View file

@ -99,7 +99,6 @@ import jdk.internal.vm.annotation.Stable;
* }</pre>
*
* @since 9
* @spec JPMS
* @see java.lang.ModuleLayer
*/
public final class Configuration {

View file

@ -33,7 +33,6 @@ package java.lang.module;
* reasons.
*
* @since 9
* @spec JPMS
*/
public class FindException extends RuntimeException {

View file

@ -31,7 +31,6 @@ package java.lang.module;
*
* @see ModuleDescriptor#read
* @since 9
* @spec JPMS
*/
public class InvalidModuleDescriptorException extends RuntimeException {
@java.io.Serial

View file

@ -88,7 +88,6 @@ import jdk.internal.module.ModuleInfo;
*
* @see java.lang.Module
* @since 9
* @spec JPMS
*/
public class ModuleDescriptor
@ -100,7 +99,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#modifiers()
* @since 9
* @spec JPMS
*/
public enum Modifier {
/**
@ -135,7 +133,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#requires()
* @since 9
* @spec JPMS
*/
public final static class Requires
@ -147,7 +144,6 @@ public class ModuleDescriptor
*
* @see Requires#modifiers()
* @since 9
* @spec JPMS
*/
public enum Modifier {
@ -365,7 +361,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#exports()
* @since 9
* @spec JPMS
*/
public final static class Exports
@ -377,7 +372,6 @@ public class ModuleDescriptor
*
* @see Exports#modifiers()
* @since 9
* @spec JPMS
*/
public enum Modifier {
@ -573,7 +567,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#opens()
* @since 9
* @spec JPMS
*/
public final static class Opens
@ -584,7 +577,6 @@ public class ModuleDescriptor
*
* @see Opens#modifiers()
* @since 9
* @spec JPMS
*/
public enum Modifier {
@ -774,7 +766,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#provides()
* @since 9
* @spec JPMS
*/
public final static class Provides
@ -949,7 +940,6 @@ public class ModuleDescriptor
*
* @see ModuleDescriptor#version()
* @since 9
* @spec JPMS
*/
public final static class Version
@ -1506,7 +1496,6 @@ public class ModuleDescriptor
* {@link #build build} method.
*
* @since 9
* @spec JPMS
*/
public static final class Builder {
final String name;

View file

@ -80,7 +80,6 @@ import jdk.internal.module.SystemModuleFinders;
* <p> A {@code ModuleFinder} is not required to be thread safe. </p>
*
* @since 9
* @spec JPMS
*/
public interface ModuleFinder {

View file

@ -76,7 +76,6 @@ import java.util.stream.Stream;
*
* @see ModuleReference
* @since 9
* @spec JPMS
*/
public interface ModuleReader extends Closeable {

View file

@ -44,7 +44,6 @@ import java.util.Optional;
* @see ModuleFinder
* @see ModuleReader
* @since 9
* @spec JPMS
*/
public abstract class ModuleReference {

View file

@ -31,7 +31,6 @@ package java.lang.module;
*
* @see Configuration
* @since 9
* @spec JPMS
*/
public class ResolutionException extends RuntimeException {
@java.io.Serial

View file

@ -37,7 +37,6 @@ import java.util.Set;
* module's content.
*
* @since 9
* @spec JPMS
* @see Configuration#modules()
*/
public final class ResolvedModule {

View file

@ -208,7 +208,6 @@
* was enumerated by previous (or parent) resolution. </p>
*
* @since 9
* @spec JPMS
*/
package java.lang.module;

View file

@ -75,7 +75,6 @@ import sun.security.util.SecurityConstants;
* @jls 6.6 Access Control
* @since 1.2
* @revised 9
* @spec JPMS
*/
public class AccessibleObject implements AnnotatedElement {
static {
@ -120,7 +119,6 @@ public class AccessibleObject implements AnnotatedElement {
* @see SecurityManager#checkPermission
* @see ReflectPermission
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static void setAccessible(AccessibleObject[] array, boolean flag) {
@ -198,7 +196,6 @@ public class AccessibleObject implements AnnotatedElement {
* @see #trySetAccessible
* @see java.lang.invoke.MethodHandles#privateLookupIn
* @revised 9
* @spec JPMS
*/
@CallerSensitive // overrides in Method/Field/Constructor are @CS
public void setAccessible(boolean flag) {
@ -258,7 +255,6 @@ public class AccessibleObject implements AnnotatedElement {
* @throws SecurityException if the request is denied by the security manager
*
* @since 9
* @spec JPMS
* @see java.lang.invoke.MethodHandles#privateLookupIn
*/
@CallerSensitive
@ -422,7 +418,6 @@ public class AccessibleObject implements AnnotatedElement {
* it should use {@link #canAccess(Object)}.
*
* @revised 9
* @spec JPMS
*/
@Deprecated(since="9")
public boolean isAccessible() {
@ -459,7 +454,6 @@ public class AccessibleObject implements AnnotatedElement {
* </ul>
*
* @since 9
* @spec JPMS
* @jls 6.6 Access Control
* @see #trySetAccessible
* @see #setAccessible(boolean)

View file

@ -172,7 +172,6 @@ public final class Constructor<T> extends Executable {
* @throws SecurityException if the request is denied by the security manager
* or this is a constructor for {@code java.lang.Class}
*
* @spec JPMS
*/
@Override
@CallerSensitive

View file

@ -30,7 +30,6 @@ package java.lang.reflect;
*
* @see AccessibleObject#setAccessible(boolean)
* @since 9
* @spec JPMS
*/
public class InaccessibleObjectException extends RuntimeException {

View file

@ -280,7 +280,6 @@ import static java.lang.module.ModuleDescriptor.Modifier.SYNTHETIC;
* @see InvocationHandler
* @since 1.3
* @revised 9
* @spec JPMS
*/
public class Proxy implements java.io.Serializable {
@java.io.Serial
@ -371,7 +370,6 @@ public class Proxy implements java.io.Serializable {
*
* @see <a href="#membership">Package and Module Membership of Proxy Class</a>
* @revised 9
* @spec JPMS
*/
@Deprecated
@CallerSensitive
@ -993,7 +991,6 @@ public class Proxy implements java.io.Serializable {
*
* @see <a href="#membership">Package and Module Membership of Proxy Class</a>
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static Object newProxyInstance(ClassLoader loader,
@ -1077,7 +1074,6 @@ public class Proxy implements java.io.Serializable {
* @throws NullPointerException if {@code cl} is {@code null}
*
* @revised 9
* @spec JPMS
*/
public static boolean isProxyClass(Class<?> cl) {
return Proxy.class.isAssignableFrom(cl) && ProxyBuilder.isProxyClass(cl);

View file

@ -45,6 +45,5 @@
*
* @since 1.1
* @revised 9
* @spec JPMS
*/
package java.lang.reflect;

View file

@ -526,7 +526,6 @@ public class DatagramSocket implements java.io.Closeable {
* @see SecurityManager#checkMulticast(InetAddress)
* @see SecurityManager#checkConnect
* @revised 1.4
* @spec JSR-51
*/
public void send(DatagramPacket p) throws IOException {
delegate().send(p);
@ -563,7 +562,6 @@ public class DatagramSocket implements java.io.Closeable {
* @see java.net.DatagramPacket
* @see java.net.DatagramSocket
* @revised 1.4
* @spec JSR-51
*/
public void receive(DatagramPacket p) throws IOException {
delegate().receive(p);
@ -886,7 +884,6 @@ public class DatagramSocket implements java.io.Closeable {
* as well.
*
* @revised 1.4
* @spec JSR-51
*/
public void close() {
delegate().close();
@ -914,7 +911,6 @@ public class DatagramSocket implements java.io.Closeable {
* or {@code null} if this socket was not created for a channel
*
* @since 1.4
* @spec JSR-51
*/
public DatagramChannel getChannel() {
return null;

View file

@ -529,7 +529,6 @@ public class ServerSocket implements java.io.Closeable {
* @return the new Socket
* @see SecurityManager#checkAccept
* @revised 1.4
* @spec JSR-51
*/
public Socket accept() throws IOException {
if (isClosed())
@ -573,7 +572,6 @@ public class ServerSocket implements java.io.Closeable {
*
* @since 1.1
* @revised 1.4
* @spec JSR-51
*/
protected final void implAccept(Socket s) throws IOException {
SocketImpl si = s.impl;
@ -717,7 +715,6 @@ public class ServerSocket implements java.io.Closeable {
*
* @throws IOException if an I/O error occurs when closing the socket.
* @revised 1.4
* @spec JSR-51
*/
public void close() throws IOException {
synchronized(closeLock) {
@ -743,7 +740,6 @@ public class ServerSocket implements java.io.Closeable {
* for a channel
*
* @since 1.4
* @spec JSR-51
*/
public ServerSocketChannel getChannel() {
return null;

View file

@ -591,7 +591,6 @@ public class Socket implements java.io.Closeable {
* @throws IllegalArgumentException if endpoint is null or is a
* SocketAddress subclass not supported by this socket
* @since 1.4
* @spec JSR-51
*/
public void connect(SocketAddress endpoint) throws IOException {
connect(endpoint, 0);
@ -613,7 +612,6 @@ public class Socket implements java.io.Closeable {
* SocketAddress subclass not supported by this socket, or
* if {@code timeout} is negative
* @since 1.4
* @spec JSR-51
*/
public void connect(SocketAddress endpoint, int timeout) throws IOException {
if (endpoint == null)
@ -886,7 +884,6 @@ public class Socket implements java.io.Closeable {
* for a channel
*
* @since 1.4
* @spec JSR-51
*/
public SocketChannel getChannel() {
return null;
@ -935,7 +932,6 @@ public class Socket implements java.io.Closeable {
* using {@link #shutdownInput()}
*
* @revised 1.4
* @spec JSR-51
*/
public InputStream getInputStream() throws IOException {
if (isClosed())
@ -1007,7 +1003,6 @@ public class Socket implements java.io.Closeable {
* @throws IOException if an I/O error occurs when creating the
* output stream or if the socket is not connected.
* @revised 1.4
* @spec JSR-51
*/
public OutputStream getOutputStream() throws IOException {
if (isClosed())
@ -1581,7 +1576,6 @@ public class Socket implements java.io.Closeable {
*
* @throws IOException if an I/O error occurs when closing this socket.
* @revised 1.4
* @spec JSR-51
* @see #isClosed
*/
public synchronized void close() throws IOException {

View file

@ -70,7 +70,6 @@ class SocketInputStream extends FileInputStream {
* @return the file channel associated with this file input stream
*
* @since 1.4
* @spec JSR-51
*/
public final FileChannel getChannel() {
return null;

View file

@ -67,7 +67,6 @@ class SocketOutputStream extends FileOutputStream {
* @return the file channel associated with this file output stream
*
* @since 1.4
* @spec JSR-51
*/
public final FileChannel getChannel() {
return null;

View file

@ -206,7 +206,6 @@ public class URLClassLoader extends SecureClassLoader implements Closeable {
* allow creation of a class loader.
*
* @since 9
* @spec JPMS
*/
public URLClassLoader(String name,
URL[] urls,
@ -237,7 +236,6 @@ public class URLClassLoader extends SecureClassLoader implements Closeable {
* creation of a class loader.
*
* @since 9
* @spec JPMS
*/
public URLClassLoader(String name, URL[] urls, ClassLoader parent,
URLStreamHandlerFactory factory) {
@ -531,7 +529,6 @@ public class URLClassLoader extends SecureClassLoader implements Closeable {
* @return the newly defined {@code Package} object
*
* @revised 9
* @spec JPMS
*/
protected Package definePackage(String name, Manifest man, URL url) {
String specTitle = null, specVersion = null, specVendor = null;

View file

@ -108,7 +108,6 @@ public class SecureClassLoader extends ClassLoader {
* doesn't allow creation of a class loader.
*
* @since 9
* @spec JPMS
*/
protected SecureClassLoader(String name, ClassLoader parent) {
super(name, parent);

View file

@ -372,7 +372,6 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
* @see ResourceBundleProvider
* @since 1.1
* @revised 9
* @spec JPMS
*/
public abstract class ResourceBundle {
@ -893,7 +892,6 @@ public abstract class ResourceBundle {
* if this method is called in a named module
* @since 1.6
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static final ResourceBundle getBundle(String baseName,
@ -953,7 +951,6 @@ public abstract class ResourceBundle {
* specified module
* @return a resource bundle for the given base name and the default locale
* @since 9
* @spec JPMS
* @see ResourceBundleProvider
* @see <a href="#default_behavior">Resource Bundle Search and Loading Strategy</a>
* @see <a href="#resource-bundle-modules">Resource Bundles and Named Modules</a>
@ -1007,7 +1004,6 @@ public abstract class ResourceBundle {
* be found in the specified {@code module}
* @return a resource bundle for the given base name and locale in the module
* @since 9
* @spec JPMS
* @see <a href="#default_behavior">Resource Bundle Search and Loading Strategy</a>
* @see <a href="#resource-bundle-modules">Resource Bundles and Named Modules</a>
*/
@ -1056,7 +1052,6 @@ public abstract class ResourceBundle {
* if this method is called in a named module
* @since 1.6
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static final ResourceBundle getBundle(String baseName, Locale targetLocale,
@ -1270,7 +1265,6 @@ public abstract class ResourceBundle {
* if no resource bundle for the specified base name can be found
* @since 1.2
* @revised 9
* @spec JPMS
* @see <a href="#resource-bundle-modules">Resource Bundles and Named Modules</a>
*/
@CallerSensitive
@ -1496,7 +1490,6 @@ public abstract class ResourceBundle {
* if this method is called in a named module
* @since 1.6
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static ResourceBundle getBundle(String baseName, Locale targetLocale,
@ -2234,7 +2227,6 @@ public abstract class ResourceBundle {
*
* @since 1.6
* @revised 9
* @spec JPMS
* @see ResourceBundle.Control#getTimeToLive(String,Locale)
*/
@CallerSensitive
@ -2524,7 +2516,6 @@ public abstract class ResourceBundle {
*
* @since 1.6
* @revised 9
* @spec JPMS
* @see java.util.spi.ResourceBundleProvider
*/
public static class Control {
@ -3154,7 +3145,6 @@ public abstract class ResourceBundle {
* any I/O operations
* @see java.util.spi.ResourceBundleProvider#getBundle(String, Locale)
* @revised 9
* @spec JPMS
*/
public ResourceBundle newBundle(String baseName, Locale locale, String format,
ClassLoader loader, boolean reload)

View file

@ -387,7 +387,6 @@ import jdk.internal.reflect.Reflection;
* @author Mark Reinhold
* @since 1.6
* @revised 9
* @spec JPMS
*/
public final class ServiceLoader<S>
@ -437,7 +436,6 @@ public final class ServiceLoader<S>
*
* @param <S> The service type
* @since 9
* @spec JPMS
*/
public static interface Provider<S> extends Supplier<S> {
/**
@ -1352,7 +1350,6 @@ public final class ServiceLoader<S>
* service
*
* @revised 9
* @spec JPMS
*/
public Iterator<S> iterator() {
@ -1442,7 +1439,6 @@ public final class ServiceLoader<S>
* @return A stream that lazily loads providers for this loader's service
*
* @since 9
* @spec JPMS
*/
public Stream<Provider<S>> stream() {
// use cached providers as the source when all providers loaded
@ -1639,7 +1635,6 @@ public final class ServiceLoader<S>
* not declare that it uses {@code service}
*
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static <S> ServiceLoader<S> load(Class<S> service,
@ -1685,7 +1680,6 @@ public final class ServiceLoader<S>
* not declare that it uses {@code service}
*
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static <S> ServiceLoader<S> load(Class<S> service) {
@ -1721,7 +1715,6 @@ public final class ServiceLoader<S>
* not declare that it uses {@code service}
*
* @revised 9
* @spec JPMS
*/
@CallerSensitive
public static <S> ServiceLoader<S> loadInstalled(Class<S> service) {
@ -1774,7 +1767,6 @@ public final class ServiceLoader<S>
* not declare that it uses {@code service}
*
* @since 9
* @spec JPMS
*/
@CallerSensitive
public static <S> ServiceLoader<S> load(ModuleLayer layer, Class<S> service) {
@ -1803,7 +1795,6 @@ public final class ServiceLoader<S>
* specified in the <a href="#errors">Errors</a> section above.
*
* @since 9
* @spec JPMS
*/
public Optional<S> findFirst() {
Iterator<S> iterator = iterator();

View file

@ -109,7 +109,6 @@ import java.util.stream.StreamSupport;
* @author Mark Reinhold
* @author JSR-51 Expert Group
* @since 1.4
* @spec JSR-51
*/
public final class Matcher implements MatchResult {

View file

@ -771,7 +771,6 @@ import jdk.internal.util.ArraysSupport;
* @author Mark Reinhold
* @author JSR-51 Expert Group
* @since 1.4
* @spec JSR-51
*/
public final class Pattern

View file

@ -31,7 +31,6 @@ package java.util.regex;
*
* @author unascribed
* @since 1.4
* @spec JSR-51
*/
public class PatternSyntaxException

View file

@ -83,7 +83,6 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
* @see <a href="../ResourceBundle.html#resource-bundle-modules">
* Resource Bundles and Named Modules</a>
* @since 9
* @spec JPMS
*/
public abstract class AbstractResourceBundleProvider implements ResourceBundleProvider {
private static final JavaUtilResourceBundleAccess RB_ACCESS =

View file

@ -45,7 +45,6 @@ import java.util.ResourceBundle;
* @author Masayoshi Okutsu
* @since 1.8
* @revised 9
* @spec JPMS
* @see ResourceBundle#getBundle(String, java.util.Locale, ClassLoader, ResourceBundle.Control)
* ResourceBundle.getBundle
* @see java.util.ServiceLoader#load(Class)

View file

@ -141,7 +141,6 @@ import java.util.ResourceBundle;
* Resource Bundles and Named Modules</a>
* @see java.util.ServiceLoader
* @since 9
* @spec JPMS
*/
public interface ResourceBundleProvider {
/**