Skip to content

Commit c9a48bc

Browse files
committed
Fix docs and check them in CI
1 parent 7c51ba2 commit c9a48bc

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ jobs:
5353
export JAVA_OPTS=--enable-preview
5454
fi
5555
sbt test bootstrapProto proto/test
56+
- name: Build javadoc
57+
if: matrix.java == 23
58+
run: |
59+
sbt core/doc

core/src/main/java/perfio/BufferedInput.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public boolean hasMore() throws IOException {
248248
/// Read an unsigned 8-bit integer into the lower 8 bits of an `int`.
249249
public final int uint8() throws IOException { return int8() & 0xFF; }
250250

251-
/// Read a signed 16-bit integer (`short`) in the current byte [#order()].
251+
/// Read a signed 16-bit integer (`short`) in the current byte [#order(ByteOrder)].
252252
public abstract short int16() throws IOException;
253253
/// Read a signed 16-bit integer (`short`) in the native byte order.
254254
public abstract short int16n() throws IOException;
@@ -257,7 +257,7 @@ public boolean hasMore() throws IOException {
257257
/// Read a signed 16-bit integer (`short`) in little endian byte order.
258258
public abstract short int16l() throws IOException;
259259

260-
/// Read an unsigned 16-bit integer (`char`) in the current byte [#order()].
260+
/// Read an unsigned 16-bit integer (`char`) in the current byte [#order(ByteOrder)].
261261
public abstract char uint16() throws IOException;
262262
/// Read an unsigned 16-bit integer (`char`) in the native byte order.
263263
public abstract char uint16n() throws IOException;
@@ -266,7 +266,7 @@ public boolean hasMore() throws IOException {
266266
/// Read an unsigned 16-bit integer (`char`) in little endian byte order.
267267
public abstract char uint16l() throws IOException;
268268

269-
/// Read a signed 32-bit integer (`int`) in the current byte [#order()].
269+
/// Read a signed 32-bit integer (`int`) in the current byte [#order(ByteOrder)].
270270
public abstract int int32() throws IOException;
271271
/// Read a signed 32-bit integer (`int`) in the native byte order.
272272
public abstract int int32n() throws IOException;
@@ -275,7 +275,7 @@ public boolean hasMore() throws IOException {
275275
/// Read a signed 32-bit integer (`int`) in little endian byte order.
276276
public abstract int int32l() throws IOException;
277277

278-
/// Read an unsigned 32-bit integer into the lower 32 bits of a `long` in the current byte [#order()].
278+
/// Read an unsigned 32-bit integer into the lower 32 bits of a `long` in the current byte [#order(ByteOrder)].
279279
public final long uint32() throws IOException { return int32() & 0xFFFFFFFFL; }
280280
/// Read an unsigned 32-bit integer into the lower 32 bits of a `long` in the native byte order.
281281
public final long uint32n() throws IOException { return int32n() & 0xFFFFFFFFL; }
@@ -284,7 +284,7 @@ public boolean hasMore() throws IOException {
284284
/// Read an unsigned 32-bit integer into the lower 32 bits of a `long` in the little endian byte order.
285285
public final long uint32l() throws IOException { return int32l() & 0xFFFFFFFFL; }
286286

287-
/// Read a signed 64-bit integer (`long`) in the current byte [#order()].
287+
/// Read a signed 64-bit integer (`long`) in the current byte [#order(ByteOrder)].
288288
public abstract long int64() throws IOException;
289289
/// Read a signed 64-bit integer (`long`) in the native byte order.
290290
public abstract long int64n() throws IOException;
@@ -293,7 +293,7 @@ public boolean hasMore() throws IOException {
293293
/// Read a signed 64-bit integer (`long`) in little endian byte order.
294294
public abstract long int64l() throws IOException;
295295

296-
/// Read a 32-bit IEEE-754 floating point value (`float`) in the current byte [#order()].
296+
/// Read a 32-bit IEEE-754 floating point value (`float`) in the current byte [#order(ByteOrder)].
297297
public abstract float float32() throws IOException;
298298
/// Read a 32-bit IEEE-754 floating point value (`float`) in the native byte order.
299299
public abstract float float32n() throws IOException;
@@ -302,7 +302,7 @@ public boolean hasMore() throws IOException {
302302
/// Read a 32-bit IEEE-754 floating point value (`float`) in little endian byte order.
303303
public abstract float float32l() throws IOException;
304304

305-
/// Read a 64-bit IEEE-754 floating point value (`double`) in the current byte [#order()].
305+
/// Read a 64-bit IEEE-754 floating point value (`double`) in the current byte [#order(ByteOrder)].
306306
public abstract double float64() throws IOException;
307307
/// Read a 64-bit IEEE-754 floating point value (`double`) in the native byte order.
308308
public abstract double float64n() throws IOException;

core/src/main/java/perfio/FilteringBufferedOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void flushBlocks(boolean forceFlush) throws IOException {
8686
///
8787
/// An asynchronous filter may instead start filtering the block on another thread, and collect
8888
/// any finished blocks to write them to the parent. It must also override [#flushPending()] to
89-
/// write pending blocks on demand. Note that all [#BufferedOutput] methods may only be called
89+
/// write pending blocks on demand. Note that all [BufferedOutput] methods may only be called
9090
/// on the main thread. In particular, you must not get a cached block from a background thread
9191
/// with [#allocBlock()]. Instead, wait for the next call to [#filterBlock(BufferedOutput)] or
9292
/// [#flushPending()] to get a new block and then continue processing, or use

0 commit comments

Comments
 (0)