@@ -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