Skip to content

Commit 6f8adea

Browse files
committed
improve error comment.
1 parent 9a3b29b commit 6f8adea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/datasketches/memory/internal/ResourceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public final boolean isSameResource(final Resource that) {
464464
&& thisSeg.byteSize() == thatSeg.byteSize();
465465
} else { //on heap
466466
if (thisSeg.isReadOnly() || thatSeg.isReadOnly()) {
467-
throw new IllegalArgumentException("Cannot determine 'is same resource' on heap if one resource is Read-only.");
467+
throw new IllegalArgumentException("Cannot determine 'isSameResource(..)' on heap if either resource is Read-only.");
468468
}
469469
return (thisSeg.heapBase().get() == thatSeg.heapBase().get())
470470
&& (thisSeg.address() == thatSeg.address())

0 commit comments

Comments
 (0)