Skip to content

Commit

Permalink
For checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Oct 24, 2023
1 parent 71cf3f9 commit 175a2ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public YamlTracingConfiguration<T> convertToYamlConfiguration(final TracingConfi
}

private YamlTracingStorageConfiguration<T> convertTracingStorageConfiguration(final TracingStorageConfiguration<T> tracingStorageConfig) {
return (YamlTracingStorageConfiguration) TypedSPILoader.getService(YamlConfigurationConverter.class, tracingStorageConfig.getClass()).convertToYamlConfiguration(tracingStorageConfig);
return (YamlTracingStorageConfiguration) TypedSPILoader.getService(YamlConfigurationConverter.class, tracingStorageConfig.getClass()).convertToYamlConfiguration(tracingStorageConfig);
}

@Override
Expand Down

0 comments on commit 175a2ff

Please sign in to comment.