You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/08/29 18:37:09 UTC

[incubator-datasketches-java] branch master updated: Convert to Read-Only exception.

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-java.git


The following commit(s) were added to refs/heads/master by this push:
     new 039c6aa  Convert to Read-Only exception.
039c6aa is described below

commit 039c6aadf6ce55a601f3ba81f14606f0185ea973
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Thu Aug 29 11:37:00 2019 -0700

    Convert to Read-Only exception.
---
 .../java/org/apache/datasketches/hll/DirectHllSketchTest.java     | 8 ++++----
 src/test/java/org/apache/datasketches/hll/HllArrayTest.java       | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/test/java/org/apache/datasketches/hll/DirectHllSketchTest.java b/src/test/java/org/apache/datasketches/hll/DirectHllSketchTest.java
index e5b7615..8c3a773 100644
--- a/src/test/java/org/apache/datasketches/hll/DirectHllSketchTest.java
+++ b/src/test/java/org/apache/datasketches/hll/DirectHllSketchTest.java
@@ -25,11 +25,11 @@ import static org.testng.Assert.fail;
 
 import java.util.HashSet;
 
-import org.testng.annotations.Test;
-
+import org.apache.datasketches.SketchesArgumentException;
+import org.apache.datasketches.SketchesReadOnlyException;
 import org.apache.datasketches.memory.Memory;
 import org.apache.datasketches.memory.WritableMemory;
-import org.apache.datasketches.SketchesArgumentException;
+import org.testng.annotations.Test;
 
 /**
  * @author Lee Rhodes
@@ -58,7 +58,7 @@ public class DirectHllSketchTest {
     try {
       sk2.update(1);
       fail();
-    } catch (SketchesArgumentException e) {
+    } catch (SketchesReadOnlyException e) {
       //expected
     }
   }
diff --git a/src/test/java/org/apache/datasketches/hll/HllArrayTest.java b/src/test/java/org/apache/datasketches/hll/HllArrayTest.java
index dfa756f..d9180a8 100644
--- a/src/test/java/org/apache/datasketches/hll/HllArrayTest.java
+++ b/src/test/java/org/apache/datasketches/hll/HllArrayTest.java
@@ -138,7 +138,7 @@ public class HllArrayTest {
    * @param s value to print
    */
   static void println(String s) {
-    System.out.println(s); //disable here
+    //System.out.println(s); //disable here
   }
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org