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

leerho pushed a commit to branch update_7.0.X
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git

commit 46781c26e8fba8d0f1788da39f281cbb3fe8fd3a
Author: Lee Rhodes <[email protected]>
AuthorDate: Fri May 8 12:45:54 2026 -0700

    Update 7.0.X
---
 .../apache/datasketches/memory/internal/Util.java  | 35 ----------------------
 .../datasketches/memory/internal/UtilTest.java     | 21 +------------
 2 files changed, 1 insertion(+), 55 deletions(-)

diff --git 
a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/Util.java
 
b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/Util.java
index 0c9f037e..59cb8bbf 100644
--- 
a/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/Util.java
+++ 
b/datasketches-memory-java11/src/main/java/org/apache/datasketches/memory/internal/Util.java
@@ -282,18 +282,6 @@ public final class Util {
     }
   } //End class RandomCodePoints
 
-  /**
-   * Checks if given value is &le; zero.
-   * @param value the given value
-   * @param arg a meaningful name of the actual argument.
-   * @throws IllegalArgumentException if value is &le; 0.
-   */
-  public static final void zeroCheck(final long value, final String arg) {
-    if (value <= 0) {
-      throw new IllegalArgumentException("The argument '" + arg + "' may not 
be negative or zero.");
-    }
-  }
-
   /**
    * Checks if given value is &lt; zero.
    * @param value the given value
@@ -306,20 +294,6 @@ public final class Util {
     }
   }
 
-  /**
-   * Checks if given value is null.
-   * @param obj the given object
-   * @param arg a meaningful name of the actual argument.
-   * @throws IllegalArgumentException if value is null.
-   */
-  public static final void nullCheck(final Object obj, final String arg) {
-    if (obj == null) {
-      throw new IllegalArgumentException("The argument '" + arg + "' may not 
be null.");
-    }
-  }
-
-  //Resources NOTE: these 3 methods are duplicated in Java/ datasketches/Util
-
   /**
    * Gets the Path of the given resource file's shortName.
    *
@@ -346,15 +320,6 @@ public final class Util {
     }
   }
 
-//  /**
-//   * Gets the file defined by the given resource file's shortFileName.
-//   * @param shortFileName the last name in the pathname's name sequence.
-//   * @return the file defined by the given resource file's shortFileName.
-//   */
-//  public static File getResourceFile(final String shortFileName) {
-//    return new File(getResourcePath(shortFileName));
-//  }
-
   /**
    * Returns a byte array of the contents of the file defined by the given 
resource file's
    * shortFileName.
diff --git 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/UtilTest.java
 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/UtilTest.java
index 0bb9580e..da03f621 100644
--- 
a/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/UtilTest.java
+++ 
b/datasketches-memory-java11/src/test/java/org/apache/datasketches/memory/internal/UtilTest.java
@@ -17,18 +17,12 @@
  * under the License.
  */
 
-/*
- * Note: Lincoln's Gettysburg Address is in the public domain. See LICENSE.
- */
-
 package org.apache.datasketches.memory.internal;
 
 import static org.apache.datasketches.memory.internal.Util.characterPad;
 import static org.apache.datasketches.memory.internal.Util.getResourceBytes;
 import static org.apache.datasketches.memory.internal.Util.getResourceFile;
 import static org.apache.datasketches.memory.internal.Util.negativeCheck;
-import static org.apache.datasketches.memory.internal.Util.nullCheck;
-import static org.apache.datasketches.memory.internal.Util.zeroCheck;
 import static org.apache.datasketches.memory.internal.Util.zeroPad;
 import static org.testng.Assert.assertEquals;
 import static org.testng.Assert.assertTrue;
@@ -83,20 +77,7 @@ public class UtilTest {
   }
 
   @Test
-  public void checkNullZeroNegativeChecks() {
-    Object obj = null;
-    try {
-      nullCheck(obj, "Test Object");
-      fail();
-    } catch (IllegalArgumentException e) {
-      //OK
-    }
-    try {
-      zeroCheck(0, "Test Long");
-      fail();
-    } catch (IllegalArgumentException e) {
-      //OK
-    }
+  public void checkNegativeChecks() {
     try {
       negativeCheck(-1L, "Test Long");
       fail();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to