Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
cool9850311 committed Dec 26, 2024
1 parent f73787d commit 4ccbe90
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 4ccbe90

Please sign in to comment.