From 9af570dd115794ac20f6214451559f652a637b99 Mon Sep 17 00:00:00 2001 From: doleyzi Date: Mon, 15 Apr 2024 20:31:43 +0800 Subject: [PATCH] Optimize import --- .../java/org/apache/inlong/audit/send/SenderManager.java | 9 +++++---- .../apache/inlong/audit/service/ClickHouseService.java | 1 + .../inlong/audit/service/ElasticsearchService.java | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/send/SenderManager.java b/inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/send/SenderManager.java index a9b3803cc31..6868ba52975 100644 --- a/inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/send/SenderManager.java +++ b/inlong-audit/audit-sdk/src/main/java/org/apache/inlong/audit/send/SenderManager.java @@ -17,14 +17,15 @@ package org.apache.inlong.audit.send; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.ByteBufAllocator; -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandlerContext; import org.apache.inlong.audit.protocol.AuditApi; import org.apache.inlong.audit.util.AuditConfig; import org.apache.inlong.audit.util.AuditData; import org.apache.inlong.audit.util.SenderResult; + +import io.netty.buffer.ByteBuf; +import io.netty.buffer.ByteBufAllocator; +import io.netty.channel.Channel; +import io.netty.channel.ChannelHandlerContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ClickHouseService.java b/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ClickHouseService.java index c32567b44db..ad257ba3724 100644 --- a/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ClickHouseService.java +++ b/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ClickHouseService.java @@ -20,6 +20,7 @@ import org.apache.inlong.audit.config.ClickHouseConfig; import org.apache.inlong.audit.db.entities.ClickHouseDataPo; import org.apache.inlong.audit.protocol.AuditData; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ElasticsearchService.java b/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ElasticsearchService.java index 0428e4847f3..02a23c3a8cd 100644 --- a/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ElasticsearchService.java +++ b/inlong-audit/audit-store/src/main/java/org/apache/inlong/audit/service/ElasticsearchService.java @@ -17,12 +17,13 @@ package org.apache.inlong.audit.service; -import com.google.gson.FieldNamingPolicy; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; import org.apache.inlong.audit.config.ElasticsearchConfig; import org.apache.inlong.audit.db.entities.ESDataPo; import org.apache.inlong.audit.protocol.AuditData; + +import com.google.gson.FieldNamingPolicy; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import org.elasticsearch.action.admin.indices.create.CreateIndexRequest; import org.elasticsearch.action.admin.indices.create.CreateIndexResponse; import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;