diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelVersionEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelVersionEvent.java index b8519c38edf..527fdd485e9 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelVersionEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/GetModelVersionEvent.java @@ -24,7 +24,7 @@ /** Represents an event triggered upon the successful getting the version of a model. */ public class GetModelVersionEvent extends ModelEvent { - public final ModelInfo GetModelVersionInfo; + public final ModelInfo getModelVersionInfo; /** * Constructs an instance of {@code GetModelVersionEvent}. @@ -36,7 +36,7 @@ public class GetModelVersionEvent extends ModelEvent { public GetModelVersionEvent( String user, NameIdentifier identifier, ModelInfo getModelVersionInfo) { super(user, identifier); - GetModelVersionInfo = getModelVersionInfo; + this.getModelVersionInfo = getModelVersionInfo; } /** @@ -46,7 +46,7 @@ public GetModelVersionEvent( * @return A {@link ModelInfo} instance encapsulating the details of the model version. */ public ModelInfo getModelVersionInfo() { - return GetModelVersionInfo; + return getModelVersionInfo; } /** diff --git a/core/src/main/java/org/apache/gravitino/listener/api/info/ModelInfo.java b/core/src/main/java/org/apache/gravitino/listener/api/info/ModelInfo.java index 5d271c2347e..c62dacc942c 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/info/ModelInfo.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/info/ModelInfo.java @@ -53,15 +53,15 @@ public ModelInfo(Model model) { * Constructs model information based on a given model and model versions. * * @param model the model to expose information for. - * @param modelVersion the versions of the model. + * @param modelVersions the versions of the model. */ - public ModelInfo(Model model, ModelVersion[] modelVersion) { + public ModelInfo(Model model, ModelVersion[] modelVersions) { this.name = model.name(); this.properties = model.properties(); this.comment = model.comment(); this.audit = model.auditInfo(); this.lastVersion = model.latestVersion(); - this.versions = modelVersion; + this.versions = modelVersions; } /**