Skip to content
Permalink
Browse files
Remove multiple empty lines
  • Loading branch information
leerho committed Mar 26, 2022
1 parent 03e6346 commit 0cd2d4301bd7ac893972e7d680eb889944f9b28f
Showing 2 changed files with 3 additions and 6 deletions.
@@ -67,9 +67,9 @@
import org.apache.datasketches.memory.WritableMemory;

/*
* Sampled stream data (floats or doubles) is stored as arrays or Memory objects of items.
* Sampled stream data (floats or doubles) is stored as an array or as part of a Memory object.
* This array is partitioned into sections called levels and the indices into the array of items
* is tracked by a small integer array called levels or levels array.
* are tracked by a small integer array called levels or levels array.
* The data for level i lies in positions levelsArray[i] through levelsArray[i + 1] - 1 inclusive.
* Hence, the levelsArray must contain (numLevels + 1) indices.
* The valid portion of items array is completely packed and sorted, except for level 0,
@@ -87,7 +87,6 @@
* 5) Current total item capacity = itemsArray.length = levelsArray[numLevels].
*/


/**
* This class is the root of the KLL sketch class hierarchy. It includes the public API that is independent
* of either sketch type (float or double) and independent of whether the sketch is targeted for use on the
@@ -219,7 +218,6 @@ final static void kllSketchThrow(final int errNo) {
throw new SketchesArgumentException(msg);
}


//Public Non-static methods

/**
@@ -778,7 +776,6 @@ private static double resolveDoubleMaxValue(final double myMax, final double oth
return max(myMax, otherMax);
}


final void mergeFloatImpl(final KllSketch other) {
if (other.isEmpty()) { return; }
final long finalN = getN() + other.getN();
@@ -889,7 +886,6 @@ private static float resolveFloatMaxValue(final float myMax, final float otherMa
return max(myMax, otherMax);
}


abstract void setDoubleItemsArray(double[] floatItems);

abstract void setDoubleItemsArrayAt(int index, double value);
@@ -352,6 +352,7 @@ under the License.
<!-- Whitespace -->
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
<property name="allowMultipleEmptyLines" value="false"/>
</module>

<module name="GenericWhitespace">

0 comments on commit 0cd2d43

Please sign in to comment.