Skip to content

Commit 39a47af

Browse files
committed
minor comment tweaks.
1 parent 5e20a69 commit 39a47af

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/java/org/apache/datasketches/common/positional/PositionInvariantsException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
/**
2323
* Position operation violation.
24+
*
25+
* @author Lee Rhodes
2426
*/
2527
public class PositionInvariantsException extends RuntimeException {
2628
private static final long serialVersionUID = 1L;

src/main/java/org/apache/datasketches/common/positional/PositionalImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public final PositionalImpl setStartPositionEnd(final long start, final long pos
112112
* @param start the lowest start position
113113
* @param pos the current position
114114
* @param end the highest position
115-
* @param cap the capacity of the backing buffer.
115+
* @param cap the capacity of the backing resource.
116116
*/
117117
private static final void checkInvariants(final long start, final long pos, final long end,
118118
final long cap) {

src/main/java/org/apache/datasketches/common/positional/PositionalSegment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.lang.foreign.MemorySegment;
2323

2424
/**
25-
* Defines the read-only API for relative positional access to a resource.
25+
* Defines the API for relative positional access to a MemorySegment.
2626
*
2727
* @author Lee Rhodes
2828
*/
@@ -259,7 +259,7 @@ void getShortArray(
259259
int dstOffsetShorts,
260260
int lengthShorts);
261261

262-
//PRIMITIVE putX() and putXArray()
262+
//PRIMITIVE setX() and setXArray()
263263

264264
/**
265265
* Sets the boolean value at the current position.

src/main/java/org/apache/datasketches/common/positional/PositionalSegmentImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
/**
3333
* Implementation of PositionalSegment
34+
*
35+
* @author Lee Rhodes
3436
*/
3537
final class PositionalSegmentImpl extends PositionalImpl implements PositionalSegment {
3638
private static final byte SHORT_SHIFT = 1;
@@ -200,7 +202,7 @@ public void getShortArray(final short[] dstArray, final int dstOffsetShorts, fin
200202
incrementPosition(lengthShorts << SHORT_SHIFT);
201203
}
202204

203-
//PRIMITIVE putX() and putXArray() implementations
205+
//PRIMITIVE setX() and setXArray() implementations
204206

205207
@Override
206208
public void setBoolean(final boolean value) {

0 commit comments

Comments
 (0)