Skip to content

Commit d855a79

Browse files
committed
Did some improvements to javadoc
1 parent 109dabf commit d855a79

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Item Creator/src/main/java/org/broken/arrow/library/itemcreator/utility/compound/CompoundTag.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public void setByteArray(@Nonnull final String key, final byte[] value) {
146146
* {@link #setByteArray(String, byte[])}.
147147
*
148148
* @param key the name of the tag to read
149-
* @return the byte array associated with the key, an empty array if reflection
150-
* access fails, or {@code null} if the key does not exist in the NBT data.
149+
* @return the byte array, {@code null} if the tag is missing, or
150+
* an empty array on reflection failure.
151151
*/
152152
@Nullable
153153
public byte[] getByteArray(@Nonnull final String key) {

Item Creator/src/main/java/org/broken/arrow/library/itemcreator/utility/nms/LegacyNBT.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,12 @@ public void setByteArray(@Nonnull final String key, final byte[] value) {
701701
/**
702702
* Retrieves a byte array from the underlying NBTTagCompound.
703703
*
704-
* <p>If the reflective access fails (e.g., missing method reference or an
705-
* exception during invocation), this method returns an empty byte array.
706-
* A {@code null} value is only returned if the underlying NBT structure
707-
* itself represents the tag as non-existent.</p>
704+
* <p>Returns {@code null} if the NBT tag does not exist, or an empty array if
705+
* the reflective call is unavailable or fails.</p>
708706
*
709707
* @param key the key of the stored byte array
710-
* @return the byte array associated with the key, an empty array if reflection
711-
* access fails, or {@code null} if the key does not exist in the NBT data.
708+
* @return the byte array, {@code null} if the tag is missing, or
709+
* an empty array on reflection failure.
712710
*/
713711
@Nullable
714712
public byte[] getByteArray(@Nonnull final String key) {

0 commit comments

Comments
 (0)