kimmking commented on a change in pull request #4825: orchestration mode code
optimization .
URL:
https://github.com/apache/incubator-shardingsphere/pull/4825#discussion_r394215956
##########
File path:
sharding-orchestration/sharding-orchestration-core/sharding-orchestration-core-configcenter/src/main/java/org/apache/shardingsphere/orchestration/core/configcenter/ConfigCenter.java
##########
@@ -237,9 +236,9 @@ public boolean isShadowRule(final String
shardingSchemaName) {
*/
@SuppressWarnings("unchecked")
public Map<String, DataSourceConfiguration>
loadDataSourceConfigurations(final String shardingSchemaName) {
- Map<String, YamlDataSourceConfiguration> result = (Map)
YamlEngine.unmarshal(repository.get(node.getDataSourcePath(shardingSchemaName)));
+ Map<String, YamlDataSourceConfiguration> result = (Map<String,
YamlDataSourceConfiguration>)
YamlEngine.unmarshal(repository.get(node.getDataSourcePath(shardingSchemaName)));
Review comment:
unnecessary.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services