From 18cf50634c813a730348e66053e661b144560e41 Mon Sep 17 00:00:00 2001 From: nutsjian Date: Fri, 11 Nov 2022 10:17:04 +0800 Subject: [PATCH] update checkstyle --- .../internal/dialect/sqlite/SqliteTypeMapper.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/sqlite/SqliteTypeMapper.java b/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/sqlite/SqliteTypeMapper.java index 8ff05b97b91..87681aa7e84 100644 --- a/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/sqlite/SqliteTypeMapper.java +++ b/seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/sqlite/SqliteTypeMapper.java @@ -17,13 +17,12 @@ package org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.sqlite; -import lombok.extern.slf4j.Slf4j; import org.apache.seatunnel.api.table.type.BasicType; import org.apache.seatunnel.api.table.type.PrimitiveByteArrayType; import org.apache.seatunnel.api.table.type.SeaTunnelDataType; import org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialectTypeMapper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; + +import lombok.extern.slf4j.Slf4j; import java.sql.ResultSetMetaData; import java.sql.SQLException; @@ -31,8 +30,6 @@ @Slf4j public class SqliteTypeMapper implements JdbcDialectTypeMapper { - private static final Logger LOG = LoggerFactory.getLogger(SqliteTypeMapper.class); - // ============================data types===================== private static final String SQLITE_UNKNOWN = "UNKNOWN"; @@ -126,10 +123,10 @@ public SeaTunnelDataType mapping(ResultSetMetaData metadata, int colIndex) th case SQLITE_FLOAT: return BasicType.FLOAT_TYPE; case SQLITE_FLOAT_UNSIGNED: - LOG.warn("{} will probably cause value overflow.", SQLITE_FLOAT_UNSIGNED); + log.warn("{} will probably cause value overflow.", SQLITE_FLOAT_UNSIGNED); return BasicType.FLOAT_TYPE; case SQLITE_DOUBLE_UNSIGNED: - LOG.warn("{} will probably cause value overflow.", SQLITE_DOUBLE_UNSIGNED); + log.warn("{} will probably cause value overflow.", SQLITE_DOUBLE_UNSIGNED); return BasicType.DOUBLE_TYPE; case SQLITE_CHARACTER: case SQLITE_VARYING_CHARACTER: