8331879: Clean up non-standard use of /// comments in java.base

Reviewed-by: naoto, iris, darcy
This commit is contained in:
Jonathan Gibbons 2024-05-31 22:16:35 +00:00
parent 2cae9a0397
commit 10eb1cb639
25 changed files with 117 additions and 117 deletions

View file

@ -94,7 +94,7 @@ import java.util.function.IntFunction;
*/
// public
interface ConstantGroup {
/// Access
//--- Access
/**
* Returns the number of constants in this group.
@ -148,7 +148,7 @@ interface ConstantGroup {
*/
boolean isPresent(int index);
/// Views
//--- Views
/**
* Create a view on this group as a {@link List} view.
@ -182,7 +182,7 @@ interface ConstantGroup {
return new AbstractConstantGroup.SubGroup(this, start, end);
}
/// Bulk operations
//--- Bulk operations
/**
* Copy a sequence of constant values into a given buffer.

View file

@ -46,20 +46,20 @@ class MethodHandleNatives {
private MethodHandleNatives() { } // static only
/// MemberName support
//--- MemberName support
static native void init(MemberName self, Object ref);
static native void expand(MemberName self);
static native MemberName resolve(MemberName self, Class<?> caller, int lookupMode,
boolean speculativeResolve) throws LinkageError, ClassNotFoundException;
/// Field layout queries parallel to jdk.internal.misc.Unsafe:
//--- Field layout queries parallel to jdk.internal.misc.Unsafe:
static native long objectFieldOffset(MemberName self); // e.g., returns vmindex
static native long staticFieldOffset(MemberName self); // e.g., returns vmindex
static native Object staticFieldBase(MemberName self); // e.g., returns clazz
static native Object getMemberVMInfo(MemberName self); // returns {vmindex,vmtarget}
/// CallSite support
//--- CallSite support
/** Tell the JVM that we need to change the target of a CallSite. */
static native void setCallSiteTargetNormal(CallSite site, MethodHandle target);

View file

@ -93,7 +93,7 @@ public class MethodHandles {
// See IMPL_LOOKUP below.
//// Method handle creation from ordinary methods.
//--- Method handle creation from ordinary methods.
/**
* Returns a {@link Lookup lookup object} with
@ -3745,7 +3745,7 @@ return mh1;
return new InfoFromMemberName(this, member, refKind);
}
/// Helper methods, all package-private.
//--- Helper methods, all package-private.
MemberName resolveOrFail(byte refKind, Class<?> refc, String name, Class<?> type) throws NoSuchFieldException, IllegalAccessException {
checkSymbolicClass(refc); // do this before attempting to resolve
@ -4639,7 +4639,7 @@ return mh1;
}
/// method handle invocation (reflective style)
//--- method handle invocation (reflective style)
/**
* Produces a method handle which will invoke any method handle of the
@ -4822,7 +4822,7 @@ return invoker;
return type.invokers().basicInvoker();
}
/// method handle modification (creation from other method handles)
//--- method handle modification (creation from other method handles)
/**
* Produces a method handle which adapts the type of the

View file

@ -1133,7 +1133,7 @@ class MethodType
}
}
/// Queries which have to do with the bytecode architecture
//--- Queries which have to do with the bytecode architecture
/** Reports the number of JVM stack slots required to invoke a method
* of this type. Note that (for historical reasons) the JVM requires
@ -1302,7 +1302,7 @@ class MethodType
}
}
/// Serialization.
//--- Serialization.
/**
* There are no serializable fields for {@code MethodType}.