Skip to content

Commit 5c0cdc1

Browse files
committed
Fix javadoc
1 parent 657f1aa commit 5c0cdc1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/apache/datasketches/hll/BaseHllSketch.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public boolean isEstimationMode() {
203203
/**
204204
* Serializes this sketch as a byte array in compact form. The compact form is smaller in size
205205
* than the updatable form and read-only. It can be used in union operations as follows:
206-
* <pre>
206+
* <pre>{@code
207207
* Union union; HllSketch sk, sk2;
208208
* int lgK = 12;
209209
* sk = new HllSketch(lgK, TgtHllType.HLL_4); //can be 4, 6, or 8
@@ -218,7 +218,7 @@ public boolean isEstimationMode() {
218218
* sk2 = HllSketch.heapify(arr);
219219
* //OR, if used in an off-heap environment:
220220
* sk2 = HllSketch.heapify(Memory.wrap(arr));
221-
* </pre>
221+
* }</pre>
222222
*
223223
* <p>The sketch "wrapping" operation skips actual deserialization thus is quite fast. However,
224224
* any attempt to update the derived HllSketch will result in a Read-only exception.
@@ -231,7 +231,7 @@ public boolean isEstimationMode() {
231231
* the compact form. The use of this form is primarily in environments that support updating
232232
* sketches in off-heap memory. If the sketch is constructed using HLL_8, sketch updating and
233233
* union updating operations can actually occur in WritableMemory, which can be off-heap:
234-
* <pre>
234+
* <pre>{@code
235235
* Union union; HllSketch sk;
236236
* int lgK = 12;
237237
* sk = new HllSketch(lgK, TgtHllType.HLL_8) //must be 8
@@ -240,7 +240,7 @@ public boolean isEstimationMode() {
240240
* WritableMemory wmem = WritableMemory.wrap(arr);
241241
* //...
242242
* union = Union.writableWrap(wmem); //no deserialization!
243-
* </pre>
243+
* }</pre>
244244
* @return this sketch as an updatable byte array.
245245
*/
246246
public abstract byte[] toUpdatableByteArray();

0 commit comments

Comments
 (0)