diff --git a/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java b/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java index 883508fe6e..1f8cbf1361 100644 --- a/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java +++ b/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java @@ -73,7 +73,7 @@ private RenameMetadataObject(MetadataObject metadataObject, MetadataObject newMe * @return return a metadataObject. */ public MetadataObject metadataObject() { - return this.metadataObject; + return metadataObject; } /** @@ -82,7 +82,7 @@ public MetadataObject metadataObject() { * @return return a metadataObject object. */ public MetadataObject getNewMetadataObject() { - return this.newMetadataObject; + return newMetadataObject; } /** @@ -138,7 +138,7 @@ private RemoveMetadataObject(MetadataObject metadataObject) { * @return return a metadataObject. */ public MetadataObject getMetadataObject() { - return this.metadataObject; + return metadataObject; } /** diff --git a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java index 96aefccd5c..ea6e7f6c59 100644 --- a/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java +++ b/authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java @@ -236,7 +236,7 @@ public Boolean onMetadataUpdated(MetadataObjectChange... changes) throws Runtime for (MetadataObjectChange change : changes) { if (change instanceof MetadataObjectChange.RenameMetadataObject) { MetadataObject metadataObject = - ((MetadataObjectChange.RenameMetadataObject) change).getMetadataObject(); + ((MetadataObjectChange.RenameMetadataObject) change).metadataObject(); MetadataObject newMetadataObject = ((MetadataObjectChange.RenameMetadataObject) change).getNewMetadataObject(); RangerMetadataObject rangerMetadataObject = translateMetadataObject(metadataObject);