This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new aa48c864e1 [Minor] Optionals should not be set to null (#6276)
aa48c864e1 is described below
commit aa48c864e1338e446be8f474cc34c5b2153672f5
Author: Justin Mclean <[email protected]>
AuthorDate: Mon Jan 20 13:43:29 2025 +1100
[Minor] Optionals should not be set to null (#6276)
### What changes were proposed in this pull request?
Optionals should not be set to null
### Why are the changes needed?
see above
Fix: # N/A
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Tested locally
---
.../src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java
index 8485a58756..a815d6ba14 100644
---
a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java
+++
b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/OwnerDetails.java
@@ -68,7 +68,7 @@ public class OwnerDetails extends Command {
/** Displays the owner of an entity. */
@Override
public void handle() {
- Optional<Owner> owner = null;
+ Optional<Owner> owner = Optional.empty();
MetadataObject metadata = MetadataObjects.parse(entity, entityType);
try {