8342466: Improve API documentation for java.lang.classfile.attribute

Reviewed-by: darcy, asotona
This commit is contained in:
Chen Liang 2025-01-15 02:04:01 +00:00
parent 9782bfdd27
commit 973c630777
70 changed files with 2443 additions and 967 deletions

View file

@ -34,8 +34,8 @@ import jdk.internal.classfile.impl.AbstractPoolEntry;
* <p>
* The use of a {@code DoubleEntry} is modeled by a {@code double}. Conversions
* are through {@link ConstantPoolBuilder#doubleEntry} and {@link #doubleValue()}.
* In the conversions, all NaN values of the {@code double} may be collapsed
* into a single {@linkplain Double#NaN "canonical" NaN value}.
* In the conversions, all NaN values of the {@code double} may or may not be
* collapsed into a single {@linkplain Double#NaN "canonical" NaN value}.
* <p>
* A double entry has a {@linkplain #width() width} of {@code 2}, making its
* subsequent constant pool index valid and unusable.

View file

@ -34,8 +34,8 @@ import jdk.internal.classfile.impl.AbstractPoolEntry;
* <p>
* The use of a {@code FloatEntry} is modeled by a {@code float}. Conversions
* are through {@link ConstantPoolBuilder#floatEntry} and {@link #floatValue()}.
* In the conversions, all NaN values of the {@code float} may be collapsed into
* a single {@linkplain Float#NaN "canonical" NaN value}.
* In the conversions, all NaN values of the {@code float} may or may not be
* collapsed into a single {@linkplain Float#NaN "canonical" NaN value}.
*
* @see ConstantPoolBuilder#floatEntry ConstantPoolBuilder::floatEntry
* @jvms 4.4.4 The {@code CONSTANT_Integer_info} and {@code CONSTANT_Float_info}