diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagFailureEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagFailureEvent.java index a913c935eaf..c55f17b090b 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagFailureEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagFailureEvent.java @@ -21,9 +21,8 @@ import org.apache.gravitino.NameIdentifier; import org.apache.gravitino.annotation.DeveloperApi; -/** - * Represents an event triggered when an attempt to list tags fails due to an exception. - */ + +/** Represents an event triggered when an attempt to list tags fails due to an exception. */ @DeveloperApi public class ListTagFailureEvent extends TagFailureEvent { private final String metalake; @@ -33,7 +32,8 @@ public class ListTagFailureEvent extends TagFailureEvent { * * @param user The user who initiated the tag listing operation. * @param metalake The metalake name where the tags are being listed. - * @param exception The exception encountered during the tag listing operation, providing insights into the reasons behind the failure. + * @param exception The exception encountered during the tag listing operation, providing insights + * into the reasons behind the failure. */ public ListTagFailureEvent(String user, String metalake, Exception exception) { super(user, NameIdentifier.of(metalake), exception); diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagsInfoFailureEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagsInfoFailureEvent.java index a70d25d6df1..0e650e89d81 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagsInfoFailureEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/ListTagsInfoFailureEvent.java @@ -20,7 +20,7 @@ package org.apache.gravitino.listener.api.event; import org.apache.gravitino.NameIdentifier; -import org.apache.gravitino.annotation.DeveloperApi; +import org.apache.gravitino.annotation.DeveloperApi; /** * Represents an event triggered when an attempt to list tag information fails due to an exception. @@ -34,7 +34,8 @@ public class ListTagsInfoFailureEvent extends FailureEvent { * * @param user The user who initiated the tag listing operation. * @param metalake The metalake name where the tags are being listed. - * @param exception The exception encountered during the tag listing operation, providing insights into the reasons behind the failure. + * @param exception The exception encountered during the tag listing operation, providing insights + * into the reasons behind the failure. */ public ListTagsInfoFailureEvent(String user, String metalake, Exception exception) { super(user, NameIdentifier.of(metalake), exception); diff --git a/core/src/main/java/org/apache/gravitino/listener/api/event/TagFailureEvent.java b/core/src/main/java/org/apache/gravitino/listener/api/event/TagFailureEvent.java index 6c8287bb5b2..12edc12b36a 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/event/TagFailureEvent.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/event/TagFailureEvent.java @@ -23,17 +23,19 @@ import org.apache.gravitino.annotation.DeveloperApi; /** - * Represents an event triggered when an attempt to perform a tag operation fails due to an exception. + * Represents an event triggered when an attempt to perform a tag operation fails due to an + * exception. */ @DeveloperApi public class TagFailureEvent extends FailureEvent { - + /** * Constructs a new {@code TagFailureEvent} instance. * * @param user The user who initiated the tag operation. * @param identifier The identifier of the tag involved in the operation. - * @param exception The exception encountered during the tag operation, providing insights into the reasons behind the failure. + * @param exception The exception encountered during the tag operation, providing insights into + * the reasons behind the failure. */ public TagFailureEvent(String user, NameIdentifier identifier, Exception exception) { super(user, identifier, exception); diff --git a/core/src/main/java/org/apache/gravitino/listener/api/info/TagInfo.java b/core/src/main/java/org/apache/gravitino/listener/api/info/TagInfo.java index cb0def30c0b..20164f4c931 100644 --- a/core/src/main/java/org/apache/gravitino/listener/api/info/TagInfo.java +++ b/core/src/main/java/org/apache/gravitino/listener/api/info/TagInfo.java @@ -19,14 +19,11 @@ package org.apache.gravitino.listener.api.info; +import com.google.common.collect.ImmutableMap; import java.util.Map; - import javax.annotation.Nullable; - import org.apache.gravitino.annotation.DeveloperApi; -import com.google.common.collect.ImmutableMap; - /** * Provides access to metadata about a Tag instance, designed for use by event listeners. This class * encapsulates the essential attributes of a Tag, including its name, optional description, diff --git a/core/src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java b/core/src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java index 5b2032629e3..28f74c78c85 100644 --- a/core/src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java +++ b/core/src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java @@ -19,8 +19,11 @@ package org.apache.gravitino.listener.api.event; -import java.util.Arrays; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import com.google.common.collect.ImmutableMap; +import java.util.Arrays; import org.apache.gravitino.Entity; import org.apache.gravitino.MetadataObject; import org.apache.gravitino.exceptions.GravitinoRuntimeException; @@ -36,10 +39,6 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance.Lifecycle; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - -import com.google.common.collect.ImmutableMap; @TestInstance(Lifecycle.PER_CLASS) public class TestTagEvent {