You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by ga...@apache.org on 2026/07/14 09:05:55 UTC

(parquet-java) branch master updated: MINOR: Fix VariantUtil.getByte() Javadoc copied from getShort() (#3649)

This is an automated email from the ASF dual-hosted git repository.

wgtmac pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-java.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e1750252 MINOR: Fix VariantUtil.getByte() Javadoc copied from getShort() (#3649)
6e1750252 is described below

commit 6e1750252cd2a3c8ea7cc28fe4550faf11d74f18
Author: Anas Khan <an...@gmail.com>
AuthorDate: Tue Jul 14 14:35:52 2026 +0530

    MINOR: Fix VariantUtil.getByte() Javadoc copied from getShort() (#3649)
    
    The Javadoc on the package-private VariantUtil.getByte() was copied
    verbatim from getShort() and never adjusted. It listed SHORT as a
    supported type and documented an @return of "short value", but the
    method only accepts the BYTE/INT8 type and returns a byte.
    
    Correct the doc to describe Type.BYTE and an @return of "The byte
    value". No behavioral change.
    
    Signed-off-by: Anas Khan <83...@users.noreply.github.com>
---
 .../src/main/java/org/apache/parquet/variant/VariantUtil.java         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parquet-variant/src/main/java/org/apache/parquet/variant/VariantUtil.java b/parquet-variant/src/main/java/org/apache/parquet/variant/VariantUtil.java
index f50a0f316..ad7165fcf 100644
--- a/parquet-variant/src/main/java/org/apache/parquet/variant/VariantUtil.java
+++ b/parquet-variant/src/main/java/org/apache/parquet/variant/VariantUtil.java
@@ -546,9 +546,9 @@ class VariantUtil {
   }
 
   /**
-   * Similar to getLong(), but for the types: Type.BYTE, SHORT.
+   * Similar to getLong(), but for the type: Type.BYTE.
    * @param value The Variant value
-   * @return The short value
+   * @return The byte value
    */
   static byte getByte(ByteBuffer value) {
     checkIndex(value.position(), value.limit());