From e8218533aad1be6b39c3402becc01ce1f9dda7db Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Sun, 5 Jul 2026 13:17:39 +0530 Subject: [PATCH] MINOR: Fix PrimitiveStringifier class Javadoc to link UnsupportedOperationException The class-level Javadoc of PrimitiveStringifier stated that the overloaded stringify(...) methods not implemented for the related types throw {@link OperationNotSupportedException}. That link resolved to the checked javax.naming.OperationNotSupportedException, which these unchecked methods cannot throw, and it contradicted every method's own @throws tag. In fact all overloads throw java.lang.UnsupportedOperationException. Point the class Javadoc at UnsupportedOperationException and drop the now-unused javax.naming import. Documentation-only, no behavioral change. --- .../java/org/apache/parquet/schema/PrimitiveStringifier.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveStringifier.java b/parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveStringifier.java index 3bbcca981b..8000781127 100644 --- a/parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveStringifier.java +++ b/parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveStringifier.java @@ -33,7 +33,6 @@ import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.concurrent.TimeUnit; -import javax.naming.OperationNotSupportedException; import org.apache.parquet.io.api.Binary; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.io.ParseException; @@ -42,7 +41,7 @@ /** * Class that provides string representations for the primitive values. These string values are to be used for * logging/debugging purposes. The method {@code stringify} is overloaded for each primitive types. The overloaded - * methods not implemented for the related types throw {@link OperationNotSupportedException}. + * methods not implemented for the related types throw {@link UnsupportedOperationException}. */ public abstract class PrimitiveStringifier { private final String name;