Skip to content
Permalink
Browse files
Removed print statement in test. Fixed issue found by -P strict.
  • Loading branch information
leerho committed Feb 9, 2022
1 parent 1dc9a74 commit 580c5897921cfa424b3b015c52bb492755666197
Showing 2 changed files with 5 additions and 5 deletions.
@@ -625,7 +625,7 @@ public static int find(final double[] arr, final int low, final int high,
final double v, final InequalitySearch crit) {
Objects.requireNonNull(arr, "Inpurt arr must not be null");
Objects.requireNonNull(crit, "Input crit must not be null");
if (v == Double.NaN) { throw new SketchesArgumentException("Input v must not be NaN."); }
if (Double.isNaN(v)) { throw new SketchesArgumentException("Input v must not be NaN."); }
int lo = low;
int hi = high - 1;
int ret;
@@ -656,7 +656,7 @@ public static int find(final float[] arr, final int low, final int high,
final float v, final InequalitySearch crit) {
Objects.requireNonNull(arr, "Inpurt arr must not be null");
Objects.requireNonNull(crit, "Input crit must not be null");
if (v == Float.NaN) { throw new SketchesArgumentException("Input v must not be NaN."); }
if (Float.isNaN(v)) { throw new SketchesArgumentException("Input v must not be NaN."); }
int lo = low;
int hi = high - 1;
int ret;
@@ -294,21 +294,21 @@ public static <T> String desc(final T[] arr, final int low, final int high, fina
* @param args the args
*/
static final void printf(final String format, final Object ...args) {
System.out.printf(format, args);
//System.out.printf(format, args);
}

/**
* @param o the Object to println
*/
static final void println(final Object o) {
System.out.println(o.toString());
//System.out.println(o.toString());
}

/**
* @param o the Object to print
*/
static final void print(final Object o) {
System.out.print(o.toString());
//System.out.print(o.toString());
}

}

0 comments on commit 580c589

Please sign in to comment.