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

mbudiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 325b1ba845 Fix style check rule that breaks the build
325b1ba845 is described below

commit 325b1ba84518d4a9cd449e315ec22d84f6669671
Author: Mihai Budiu <[email protected]>
AuthorDate: Tue Mar 12 09:21:42 2024 -0700

    Fix style check rule that breaks the build
    
    Signed-off-by: Mihai Budiu <[email protected]>
---
 core/src/main/java/org/apache/calcite/sql/SqlTimeTzLiteral.java     | 6 +++---
 .../src/main/java/org/apache/calcite/sql/SqlTimestampTzLiteral.java | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/sql/SqlTimeTzLiteral.java 
b/core/src/main/java/org/apache/calcite/sql/SqlTimeTzLiteral.java
index 19dd05ff6c..e13a742d35 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlTimeTzLiteral.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlTimeTzLiteral.java
@@ -20,10 +20,10 @@ import org.apache.calcite.sql.parser.SqlParserPos;
 import org.apache.calcite.sql.type.SqlTypeName;
 import org.apache.calcite.util.TimeWithTimeZoneString;
 
-import com.google.common.base.Preconditions;
-
 import java.util.Objects;
 
+import static com.google.common.base.Preconditions.checkArgument;
+
 /**
  * A SQL literal representing a TIME WITH TIME ZONE value, for example 
<code>TIME WITH TIME ZONE
  * '14:33:44.567 GMT+08'</code>.
@@ -36,7 +36,7 @@ public class SqlTimeTzLiteral extends 
SqlAbstractDateTimeLiteral {
   SqlTimeTzLiteral(TimeWithTimeZoneString t, int precision,
                              SqlParserPos pos) {
     super(t, true, SqlTypeName.TIME_TZ, precision, pos);
-    Preconditions.checkArgument(this.precision >= 0);
+    checkArgument(this.precision >= 0);
   }
 
   //~ Methods ----------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/calcite/sql/SqlTimestampTzLiteral.java 
b/core/src/main/java/org/apache/calcite/sql/SqlTimestampTzLiteral.java
index 0e7903802b..d10ba742df 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlTimestampTzLiteral.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlTimestampTzLiteral.java
@@ -20,10 +20,10 @@ import org.apache.calcite.sql.parser.SqlParserPos;
 import org.apache.calcite.sql.type.SqlTypeName;
 import org.apache.calcite.util.TimestampWithTimeZoneString;
 
-import com.google.common.base.Preconditions;
-
 import java.util.Objects;
 
+import static com.google.common.base.Preconditions.checkArgument;
+
 /**
  * A SQL literal representing a TIMESTAMP WITH TIME ZONE value, for example 
<code>TIMESTAMP
  * '1969-07-21 03:15 GMT+00:00'</code>.
@@ -35,7 +35,7 @@ public class SqlTimestampTzLiteral extends 
SqlAbstractDateTimeLiteral {
 
   SqlTimestampTzLiteral(TimestampWithTimeZoneString ts, int precision, 
SqlParserPos pos) {
     super(ts, false, SqlTypeName.TIMESTAMP_TZ, precision, pos);
-    Preconditions.checkArgument(this.precision >= 0);
+    checkArgument(this.precision >= 0);
   }
 
   //~ Methods ----------------------------------------------------------------

Reply via email to