Skip to content

Commit

Permalink
Fix style check rule that breaks the build
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Budiu <[email protected]>
  • Loading branch information
mihaibudiu committed Mar 12, 2024
1 parent 6d3a81d commit 325b1ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
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>.
Expand All @@ -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 ----------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
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>.
Expand All @@ -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 ----------------------------------------------------------------
Expand Down

0 comments on commit 325b1ba

Please sign in to comment.