We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3b29b commit 6f8adeaCopy full SHA for 6f8adea
src/main/java/org/apache/datasketches/memory/internal/ResourceImpl.java
@@ -464,7 +464,7 @@ public final boolean isSameResource(final Resource that) {
464
&& thisSeg.byteSize() == thatSeg.byteSize();
465
} else { //on heap
466
if (thisSeg.isReadOnly() || thatSeg.isReadOnly()) {
467
- throw new IllegalArgumentException("Cannot determine 'is same resource' on heap if one resource is Read-only.");
+ throw new IllegalArgumentException("Cannot determine 'isSameResource(..)' on heap if either resource is Read-only.");
468
}
469
return (thisSeg.heapBase().get() == thatSeg.heapBase().get())
470
&& (thisSeg.address() == thatSeg.address())
0 commit comments