Skip to content

Commit bb6e26b

Browse files
committed
CSR review remarks
1 parent c08f76c commit bb6e26b

10 files changed

+20
-20
lines changed

src/java.base/share/classes/java/lang/classfile/BufWriter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public sealed interface BufWriter
7777
* writing process may be slower.
7878
*
7979
* @apiNote
80-
* This is a hint that has changes no visible state of the buffer; it helps
81-
* to reduce reallocation of the underlying storage by allocating sufficient
80+
* This is a hint that changes no visible state of the buffer; it helps to
81+
* reduce reallocation of the underlying storage by allocating sufficient
8282
* space at once.
8383
*
8484
* @param freeBytes the number of bytes to reserve
@@ -111,8 +111,8 @@ public sealed interface BufWriter
111111
/**
112112
* Writes a float value, of 4 bytes, to the buffer.
113113
* <p>
114-
* In the conversions, all NaN values of the {@code float} may be collapsed
115-
* into a single {@linkplain Float#NaN "canonical" NaN value}.
114+
* In the conversions, all NaN values of the {@code float} may or may not be
115+
* collapsed into a single {@linkplain Float#NaN "canonical" NaN value}.
116116
*
117117
* @param x the float value
118118
*/
@@ -128,8 +128,8 @@ public sealed interface BufWriter
128128
/**
129129
* Writes a double value, of 8 bytes, to the buffer.
130130
* <p>
131-
* In the conversions, all NaN values of the {@code double} may be collapsed
132-
* into a single {@linkplain Double#NaN "canonical" NaN value}.
131+
* In the conversions, all NaN values of the {@code double} may or may not
132+
* be collapsed into a single {@linkplain Double#NaN "canonical" NaN value}.
133133
*
134134
* @param x the double value
135135
*/

src/java.base/share/classes/java/lang/classfile/ClassReader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ public sealed interface ClassReader extends ConstantPool
196196
* {@return the float value at the specified offset within the {@code class}
197197
* file} Reads 4 bytes of value.
198198
* <p>
199-
* In the conversions, all NaN values of the {@code float} may be collapsed
200-
* into a single {@linkplain Float#NaN "canonical" NaN value}.
199+
* In the conversions, all NaN values of the {@code float} may or may not be
200+
* collapsed into a single {@linkplain Float#NaN "canonical" NaN value}.
201201
*
202202
* @param offset the offset within the {@code class} file
203203
*/
@@ -207,8 +207,8 @@ public sealed interface ClassReader extends ConstantPool
207207
* {@return the double value at the specified offset within the {@code
208208
* class} file} Reads 8 bytes of value.
209209
* <p>
210-
* In the conversions, all NaN values of the {@code double} may be collapsed
211-
* into a single {@linkplain Double#NaN "canonical" NaN value}.
210+
* In the conversions, all NaN values of the {@code double} may or may not
211+
* be collapsed into a single {@linkplain Double#NaN "canonical" NaN value}.
212212
*
213213
* @param offset the offset within the {@code class} file
214214
*/

src/java.base/share/classes/java/lang/classfile/Signature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public sealed interface Signature {
5757
String signatureString();
5858

5959
/**
60-
* Parses generic Java type signature from raw string.
60+
* Parses a Java type signature from a raw string.
6161
*
6262
* @param javaTypeSignature raw Java type signature string
6363
* @return a Java type signature

src/java.base/share/classes/java/lang/classfile/attribute/CodeAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* AttributeMapper#allowMultiple multiple instances} in a method. It has a
3939
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
4040
* <p>
41-
* This attribute was introduced in the Java SE Platform version 1.0.2, major
41+
* This attribute was introduced in the Java Platform version 1.0.2, major
4242
* version {@value ClassFile#JAVA_1_VERSION}.
4343
*
4444
* @apiNote

src/java.base/share/classes/java/lang/classfile/attribute/ConstantValueAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* AttributeMapper#allowMultiple multiple instances} in a field. It has a
4747
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
4848
* <p>
49-
* This attribute was introduced in the Java SE Platform version 1.0.2, major
49+
* This attribute was introduced in the Java Platform version 1.0.2, major
5050
* version {@value ClassFile#JAVA_1_VERSION}.
5151
*
5252
* @see Attributes#constantValue()

src/java.base/share/classes/java/lang/classfile/attribute/ExceptionsAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* AttributeMapper#allowMultiple multiple instances} in a method. It has a
5050
* data dependency on the {@linkplain AttributeStability#CP_REFS constant pool}.
5151
* <p>
52-
* The attribute was introduced in the Java SE Platform version 1.0.2, major
52+
* The attribute was introduced in the Java Platform version 1.0.2, major
5353
* version {@value ClassFile#JAVA_1_VERSION}.
5454
*
5555
* @apiNote

src/java.base/share/classes/java/lang/classfile/attribute/LineNumberTableAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* constructed with {@link LineNumber}, resulting in at most one attribute
5454
* instance in the built {@code Code} attribute.
5555
* <p>
56-
* The attribute was introduced in the Java SE Platform version 1.0.2, major
56+
* The attribute was introduced in the Java Platform version 1.0.2, major
5757
* version {@value ClassFile#JAVA_1_VERSION}.
5858
*
5959
* @see Attributes#lineNumberTable()

src/java.base/share/classes/java/lang/classfile/attribute/LocalVariableTableAttribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* constructed with {@link LocalVariable}, resulting in at most one attribute
5454
* instance in the built {@code Code} attribute.
5555
* <p>
56-
* The attribute was introduced in the Java SE Platform version 1.0.2, major
56+
* The attribute was introduced in the Java Platform version 1.0.2, major
5757
* version {@value ClassFile#JAVA_1_VERSION}.
5858
*
5959
* @apiNote

src/java.base/share/classes/java/lang/classfile/constantpool/DoubleEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* <p>
3535
* The use of a {@code DoubleEntry} is modeled by a {@code double}. Conversions
3636
* are through {@link ConstantPoolBuilder#doubleEntry} and {@link #doubleValue()}.
37-
* In the conversions, all NaN values of the {@code double} may be collapsed
38-
* into a single {@linkplain Double#NaN "canonical" NaN value}.
37+
* In the conversions, all NaN values of the {@code double} may or may not be
38+
* collapsed into a single {@linkplain Double#NaN "canonical" NaN value}.
3939
* <p>
4040
* A double entry has a {@linkplain #width() width} of {@code 2}, making its
4141
* subsequent constant pool index valid and unusable.

src/java.base/share/classes/java/lang/classfile/constantpool/FloatEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* <p>
3535
* The use of a {@code FloatEntry} is modeled by a {@code float}. Conversions
3636
* are through {@link ConstantPoolBuilder#floatEntry} and {@link #floatValue()}.
37-
* In the conversions, all NaN values of the {@code float} may be collapsed into
38-
* a single {@linkplain Float#NaN "canonical" NaN value}.
37+
* In the conversions, all NaN values of the {@code float} may or may not be
38+
* collapsed into a single {@linkplain Float#NaN "canonical" NaN value}.
3939
*
4040
* @see ConstantPoolBuilder#floatEntry ConstantPoolBuilder::floatEntry
4141
* @jvms 4.4.4 The {@code CONSTANT_Integer_info} and {@code CONSTANT_Float_info}

0 commit comments

Comments
 (0)