Skip to content

Commit 7a64663

Browse files
committed
core: Opaque: Add javadoc to forBytes method
Clarify that this method creates a copy of the specified bytes. Related: #149 Signed-off-by: Christian Kohlschütter <[email protected]>
1 parent b52ab01 commit 7a64663

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/java/org/dcache/nfs/util/Opaque.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
* and a Base64 string representation.
2929
*/
3030
public interface Opaque {
31+
/**
32+
* Returns an {@link Opaque} instance based on a copy of the given bytes.
33+
*
34+
* @param bytes The bytes.
35+
* @return The {@link Opaque} instance.
36+
*/
3137
public static Opaque forBytes(byte[] bytes) {
3238
return new OpaqueImpl(bytes.clone());
3339
}

0 commit comments

Comments
 (0)