From 0f1e518ee05e4aa9afe79941ce6ed5394fea1bfb Mon Sep 17 00:00:00 2001 From: Xun Date: Wed, 30 Oct 2024 15:23:27 +0800 Subject: [PATCH] removed this point --- .../gravitino/authorization/MetadataObjectChange.java | 6 +++--- .../authorization/ranger/RangerAuthorizationPlugin.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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);