未验证 提交 08e43441 编写于 作者: H Haoran Meng 提交者: GitHub

Fixes checkstyle errors (#7090)

上级 4e08024b
......@@ -220,7 +220,7 @@ public final class ConfigCenter {
* @param schemaName schema name
* @return data source configurations
*/
@SuppressWarnings({"unchecked"})
@SuppressWarnings("unchecked")
public Map<String, DataSourceConfiguration> loadDataSourceConfigurations(final String schemaName) {
if (!hasDataSourceConfiguration(schemaName)) {
return new LinkedHashMap<>();
......
......@@ -124,7 +124,7 @@ public final class SchemaChangedListener extends PostOrchestrationRepositoryEven
? createDataSourceChangedEvent(shardingSchemaName, event) : createRuleChangedEvent(shardingSchemaName, event);
}
@SuppressWarnings({"unchecked"})
@SuppressWarnings("unchecked")
private DataSourceChangedEvent createDataSourceChangedEvent(final String shardingSchemaName, final DataChangedEvent event) {
Map<String, YamlDataSourceConfiguration> dataSourceConfigurations = (Map) YamlEngine.unmarshal(event.getValue());
Preconditions.checkState(null != dataSourceConfigurations && !dataSourceConfigurations.isEmpty(), "No available data sources to load for orchestration.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册