Skip to content

Commit 2a72632

Browse files
committed
doc: even more javadoc fixes
1 parent f978d9e commit 2a72632

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/main/java/org/janelia/saalfeldlab/n5/Compression.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
/**
6969
* Deprecated: {@link Compression}s are no longer a special case.
7070
* <br>
71-
* Use {@link Codec.BytesCodec} for implementing compressors
72-
* <p> </p>
71+
* Use {@link Codec.BytesCodec} for implementing compressors.
72+
* <p>
7373
* Compression scheme interface.
7474
*
7575
* @author Stephan Saalfeld

src/main/java/org/janelia/saalfeldlab/n5/readdata/ReadData.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,17 @@ default ByteBuffer toByteBuffer() throws IOException, IllegalStateException {
126126
}
127127

128128
/**
129-
* Read the underlying data into a {@code byte[]} array, and return it as a {@code ReadData}.
130-
* (If this {@code ReadData} is already in a {@code byte[]} array or {@code
129+
* Read the underlying data into a {@code byte[]} array, and return it as a
130+
* {@code ReadData}. (If this {@code ReadData} is already in a
131+
* {@code byte[]} array or {@code
131132
* ByteBuffer}, just return {@code this}.)
132133
* <p>
133134
* The returned {@code ReadData} has a known {@link #length} and multiple
134135
* {@link #inputStream InputStreams} can be opened on it.
136+
*
137+
* @return a materialized ReadData
138+
* @throws IOException
139+
* if any I/O error occurs
135140
*/
136141
ReadData materialize() throws IOException;
137142

src/main/java/org/janelia/saalfeldlab/n5/serialization/N5Annotations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public interface N5Annotations extends Serializable {
2727
* <p>
2828
* Example usage:
2929
* <pre>{@code
30-
* &#64;ReverseArray
31-
* &#64;Parameter("chunk_shape")
30+
* @N5Annotations.ReverseArray
31+
* @NameConfig.Parameter("chunk_shape")
3232
* private final int[] shape; // Will be reversed when serializing
3333
* }</pre>
3434
* <p>

src/main/java/org/janelia/saalfeldlab/n5/serialization/NameConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface NameConfig extends Serializable {
3939
* <p>
4040
* Example usage:
4141
* <pre>{@code
42-
* @Prefix("codec")
42+
* @NameConfig.Prefix("codec")
4343
* public interface Codec extends NameConfig {
4444
* // ...
4545
* }
@@ -63,7 +63,7 @@ public interface NameConfig extends Serializable {
6363
* <p>
6464
* Example usage:
6565
* <pre>{@code
66-
* @Name("gzip")
66+
* @NameConfig.Name("gzip")
6767
* public class GzipCompression implements Compression {
6868
* // ...
6969
* }
@@ -91,10 +91,10 @@ public interface NameConfig extends Serializable {
9191
* Example usage:
9292
* <pre>{@code
9393
* public class GzipCompression implements Compression {
94-
* @Parameter
94+
* @NameConfig.Parameter
9595
* private final int level;
9696
*
97-
* @Parameter(optional = true)
97+
* @NameConfig.Parameter(optional = true)
9898
* private final boolean useZlib;
9999
* }
100100
* }</pre>

0 commit comments

Comments
 (0)