You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by jm...@apache.org on 2025/08/14 01:42:41 UTC

(gravitino) branch yossev/main created (now e6f79e4752)

This is an automated email from the ASF dual-hosted git repository.

jmclean pushed a change to branch yossev/main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


      at e6f79e4752 fix formatting

This branch includes the following new commits:

     new e6f79e4752 fix formatting

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(gravitino) 01/01: fix formatting

Posted by jm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jmclean pushed a commit to branch yossev/main
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit e6f79e475276806ab18d2dfe742e05d550c274ad
Author: Justin Mclean <jm...@apache.org>
AuthorDate: Thu Aug 14 11:42:13 2025 +1000

    fix formatting
---
 api/src/main/java/org/apache/gravitino/Namespace.java     | 6 ++++--
 api/src/test/java/org/apache/gravitino/TestNamespace.java | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/api/src/main/java/org/apache/gravitino/Namespace.java b/api/src/main/java/org/apache/gravitino/Namespace.java
index 8dd43a4d85..de5596e39f 100644
--- a/api/src/main/java/org/apache/gravitino/Namespace.java
+++ b/api/src/main/java/org/apache/gravitino/Namespace.java
@@ -75,8 +75,10 @@ public class Namespace {
    */
   public static Namespace fromString(String namespace) {
     Preconditions.checkArgument(namespace != null, "Cannot create a namespace with null input");
-    Preconditions.checkArgument(!namespace.contains(" "), "Cannot create a namespace containing whitespace");
-    Preconditions.checkArgument(!namespace.endsWith("."), "Cannot create a namespace ending with a dot");
+    Preconditions.checkArgument(
+        !namespace.contains(" "), "Cannot create a namespace containing whitespace");
+    Preconditions.checkArgument(
+        !namespace.endsWith("."), "Cannot create a namespace ending with a dot");
     Preconditions.checkArgument(
         !namespace.startsWith("."), "Cannot create a namespace starting with a dot");
     Preconditions.checkArgument(
diff --git a/api/src/test/java/org/apache/gravitino/TestNamespace.java b/api/src/test/java/org/apache/gravitino/TestNamespace.java
index a08ddd4af4..4add0d8be2 100644
--- a/api/src/test/java/org/apache/gravitino/TestNamespace.java
+++ b/api/src/test/java/org/apache/gravitino/TestNamespace.java
@@ -37,7 +37,7 @@ public class TestNamespace {
     Namespace ns = Namespace.of("a", "b", "c");
 
     Assertions.assertEquals(3, ns.length());
-    Assertions.assertArrayEquals(new String[] { "a", "b", "c" }, ns.levels());
+    Assertions.assertArrayEquals(new String[] {"a", "b", "c"}, ns.levels());
     Assertions.assertEquals("a", ns.level(0));
     Assertions.assertThrows(IllegalArgumentException.class, () -> ns.level(3));
     Assertions.assertEquals(false, ns.isEmpty());