You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by fo...@apache.org on 2026/07/11 20:28:46 UTC
(parquet-java) branch master updated: MINOR: Fix PrimitiveStringifier class Javadoc (#3651)
This is an automated email from the ASF dual-hosted git repository.
Fokko 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 5cb0ef675 MINOR: Fix PrimitiveStringifier class Javadoc (#3651)
5cb0ef675 is described below
commit 5cb0ef6751639749fb97d3ae6250f12ad1bda925
Author: Anas Khan <an...@gmail.com>
AuthorDate: Sun Jul 12 01:58:41 2026 +0530
MINOR: Fix PrimitiveStringifier class Javadoc (#3651)
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.
---
.../src/main/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 3bbcca981..800078112 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.Instant;
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 @@ import org.locationtech.jts.io.WKBReader;
/**
* 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;