Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#7213] fix: javadoc for :catalogs:hive-metastore-common (#7233)

Yunchi Pang1a0c2fde5f1a
diff --git a/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynFields.java b/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynFields.java
index 0f850d3561..78f5f5b129 100644
--- a/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynFields.java
+++ b/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynFields.java
@@ -109,12 +109,20 @@ public class DynFields {
return new StaticField<>(this);
}
- /** Returns whether the field is a static field. */
+ /**
+ * Returns whether the field is a static field.
+ *
+ * @return true if the field is static; false otherwise
+ */
public boolean isStatic() {
return Modifier.isStatic(field.getModifiers());
}
- /** Returns whether the field is always null. */
+ /**
+ * Returns whether the field is always null.
+ *
+ * @return true if this instance is {@link AlwaysNull#INSTANCE}; false otherwise
+ */
public boolean isAlwaysNull() {
return this == AlwaysNull.INSTANCE;
}
diff --git a/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynMethods.java b/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynMethods.java
index 9551d231d3..596ac8cf09 100644
--- a/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynMethods.java
+++ b/catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/dyn/DynMethods.java
@@ -134,12 +134,20 @@ public class DynMethods {
return new BoundMethod(this, receiver);
}
- /** Returns whether the method is a static method. */
+ /**
+ * Returns whether the method is a static method.
+ *
+ * @return true if the method is static; false otherwise
+ */
public boolean isStatic() {
return Modifier.isStatic(method.getModifiers());
}
- /** Returns whether the method is a noop. */
+ /**
+ * Returns whether the method is a noop.
+ *
+ * @return true if the method is a noop; false otherwise
+ */
public boolean isNoop() {
return this == NOOP;
}