From 68ce9f99027264ae32a5bc44954f7d694b9d1746 Mon Sep 17 00:00:00 2001 From: Xun Date: Wed, 30 Oct 2024 18:43:19 +0800 Subject: [PATCH] fix --- .../apache/gravitino/authorization/MetadataObjectChange.java | 4 ++-- .../authorization/ranger/RangerAuthorizationPlugin.java | 4 ++-- 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 1f8cbf1361..a7281d97d5 100644 --- a/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java +++ b/api/src/main/java/org/apache/gravitino/authorization/MetadataObjectChange.java @@ -81,7 +81,7 @@ public MetadataObject metadataObject() { * * @return return a metadataObject object. */ - public MetadataObject getNewMetadataObject() { + public MetadataObject newMetadataObject() { return newMetadataObject; } @@ -137,7 +137,7 @@ private RemoveMetadataObject(MetadataObject metadataObject) { * * @return return a metadataObject. */ - public MetadataObject getMetadataObject() { + public MetadataObject 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 ea6e7f6c59..ff26d1ca67 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 @@ -238,7 +238,7 @@ public Boolean onMetadataUpdated(MetadataObjectChange... changes) throws Runtime MetadataObject metadataObject = ((MetadataObjectChange.RenameMetadataObject) change).metadataObject(); MetadataObject newMetadataObject = - ((MetadataObjectChange.RenameMetadataObject) change).getNewMetadataObject(); + ((MetadataObjectChange.RenameMetadataObject) change).newMetadataObject(); RangerMetadataObject rangerMetadataObject = translateMetadataObject(metadataObject); RangerMetadataObject newRangerMetadataObject = translateMetadataObject(newMetadataObject); if (rangerMetadataObject.equals(newRangerMetadataObject)) { @@ -251,7 +251,7 @@ public Boolean onMetadataUpdated(MetadataObjectChange... changes) throws Runtime doRenameMetadataObject(rangerMetadataObject, newRangerMetadataObject); } else if (change instanceof MetadataObjectChange.RemoveMetadataObject) { MetadataObject metadataObject = - ((MetadataObjectChange.RemoveMetadataObject) change).getMetadataObject(); + ((MetadataObjectChange.RemoveMetadataObject) change).metadataObject(); RangerMetadataObject rangerMetadataObject = translateMetadataObject(metadataObject); doRemoveMetadataObject(rangerMetadataObject); } else {