Skip to content

Commit 039c6aa

Browse files
committed
Convert to Read-Only exception.
1 parent 787b916 commit 039c6aa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/java/org/apache/datasketches/hll/DirectHllSketchTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
import java.util.HashSet;
2727

28-
import org.testng.annotations.Test;
29-
28+
import org.apache.datasketches.SketchesArgumentException;
29+
import org.apache.datasketches.SketchesReadOnlyException;
3030
import org.apache.datasketches.memory.Memory;
3131
import org.apache.datasketches.memory.WritableMemory;
32-
import org.apache.datasketches.SketchesArgumentException;
32+
import org.testng.annotations.Test;
3333

3434
/**
3535
* @author Lee Rhodes
@@ -58,7 +58,7 @@ private static void noWriteAccess(TgtHllType tgtHllType, int n) {
5858
try {
5959
sk2.update(1);
6060
fail();
61-
} catch (SketchesArgumentException e) {
61+
} catch (SketchesReadOnlyException e) {
6262
//expected
6363
}
6464
}

src/test/java/org/apache/datasketches/hll/HllArrayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void printlnTest() {
138138
* @param s value to print
139139
*/
140140
static void println(String s) {
141-
System.out.println(s); //disable here
141+
//System.out.println(s); //disable here
142142
}
143143

144144
}

0 commit comments

Comments
 (0)