From 175a2ff608677cea25cdc20a231b57b2b6630e35 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Tue, 24 Oct 2023 23:28:10 +0800 Subject: [PATCH] For checkstyle --- .../shardingsphere/elasticjob/tracing/JobTracingEventBus.java | 3 ++- .../tracing/yaml/YamlTracingConfigurationConverter.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/JobTracingEventBus.java b/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/JobTracingEventBus.java index 67d4e8c548..003e03837c 100644 --- a/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/JobTracingEventBus.java +++ b/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/JobTracingEventBus.java @@ -71,7 +71,8 @@ private void register(final TracingConfiguration tracingConfig) { if (null == tracingConfig.getTracingStorageConfiguration()) { throw new TracingConfigurationException(String.format("Can not find executor service handler type '%s'.", tracingConfig.getType())); } - eventBus.register(TypedSPILoader.getService(TracingListenerConfiguration.class, tracingConfig.getType()).createTracingListener(tracingConfig.getTracingStorageConfiguration().getStorage())); + eventBus.register( + TypedSPILoader.getService(TracingListenerConfiguration.class, tracingConfig.getType()).createTracingListener(tracingConfig.getTracingStorageConfiguration().getStorage())); isRegistered = true; } catch (final TracingConfigurationException ex) { log.error("Elastic job: create tracing listener failure, error is: ", ex); diff --git a/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/yaml/YamlTracingConfigurationConverter.java b/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/yaml/YamlTracingConfigurationConverter.java index 85e02e697c..d605fcce51 100644 --- a/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/yaml/YamlTracingConfigurationConverter.java +++ b/ecosystem/tracing/api/src/main/java/org/apache/shardingsphere/elasticjob/tracing/yaml/YamlTracingConfigurationConverter.java @@ -39,7 +39,7 @@ public YamlTracingConfiguration convertToYamlConfiguration(final TracingConfi } private YamlTracingStorageConfiguration convertTracingStorageConfiguration(final TracingStorageConfiguration tracingStorageConfig) { - return (YamlTracingStorageConfiguration) TypedSPILoader.getService(YamlConfigurationConverter.class, tracingStorageConfig.getClass()).convertToYamlConfiguration(tracingStorageConfig); + return (YamlTracingStorageConfiguration) TypedSPILoader.getService(YamlConfigurationConverter.class, tracingStorageConfig.getClass()).convertToYamlConfiguration(tracingStorageConfig); } @Override