Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8278071: typos in MemorySegment::set, MemorySegment::setAtIndex javadoc
Reviewed-by: iris
  • Loading branch information
mcimadamore committed Dec 2, 2021
1 parent 84ca14d commit 16cfbc4
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -1051,6 +1051,7 @@ default byte get(ValueLayout.OfByte layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfByte layout, long offset, byte value) {
Expand Down Expand Up @@ -1084,6 +1085,7 @@ default boolean get(ValueLayout.OfBoolean layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfBoolean layout, long offset, boolean value) {
Expand Down Expand Up @@ -1117,6 +1119,7 @@ default char get(ValueLayout.OfChar layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfChar layout, long offset, char value) {
Expand Down Expand Up @@ -1150,6 +1153,7 @@ default short get(ValueLayout.OfShort layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfShort layout, long offset, short value) {
Expand Down Expand Up @@ -1183,6 +1187,7 @@ default int get(ValueLayout.OfInt layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfInt layout, long offset, int value) {
Expand Down Expand Up @@ -1216,6 +1221,7 @@ default float get(ValueLayout.OfFloat layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfFloat layout, long offset, float value) {
Expand Down Expand Up @@ -1249,6 +1255,7 @@ default long get(ValueLayout.OfLong layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfLong layout, long offset, long value) {
Expand Down Expand Up @@ -1282,6 +1289,7 @@ default double get(ValueLayout.OfDouble layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfDouble layout, long offset, double value) {
Expand Down Expand Up @@ -1315,6 +1323,7 @@ default MemoryAddress get(ValueLayout.OfAddress layout, long offset) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void set(ValueLayout.OfAddress layout, long offset, Addressable value) {
Expand Down Expand Up @@ -1348,6 +1357,7 @@ default char getAtIndex(ValueLayout.OfChar layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfChar layout, long index, char value) {
Expand Down Expand Up @@ -1381,6 +1391,7 @@ default short getAtIndex(ValueLayout.OfShort layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfShort layout, long index, short value) {
Expand Down Expand Up @@ -1414,6 +1425,7 @@ default int getAtIndex(ValueLayout.OfInt layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfInt layout, long index, int value) {
Expand Down Expand Up @@ -1447,6 +1459,7 @@ default float getAtIndex(ValueLayout.OfFloat layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfFloat layout, long index, float value) {
Expand Down Expand Up @@ -1480,6 +1493,7 @@ default long getAtIndex(ValueLayout.OfLong layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfLong layout, long index, long value) {
Expand Down Expand Up @@ -1513,6 +1527,7 @@ default double getAtIndex(ValueLayout.OfDouble layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfDouble layout, long index, double value) {
Expand Down Expand Up @@ -1546,6 +1561,7 @@ default MemoryAddress getAtIndex(ValueLayout.OfAddress layout, long index) {
* @throws IllegalStateException if the scope associated with this segment has been closed, or if access occurs from
* a thread other than the thread owning that scope.
* @throws IndexOutOfBoundsException when the dereference operation falls outside the <em>spatial bounds</em> of the
* memory segment.
*/
@ForceInline
default void setAtIndex(ValueLayout.OfAddress layout, long index, Addressable value) {
Expand Down

1 comment on commit 16cfbc4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.