totalo commented on a change in pull request #12432:
URL: https://github.com/apache/shardingsphere/pull/12432#discussion_r711657585
##########
File path:
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/yaml/schema/swapper/SchemaYamlSwapper.java
##########
@@ -45,7 +45,7 @@
@Override
public YamlSchema swapToYamlConfiguration(final ShardingSphereSchema
schema) {
Map<String, YamlTableMetaData> tables =
schema.getAllTableNames().stream()
- .collect(Collectors.toMap(each -> each, each ->
swapYamlTable(schema.get(each)), (oldValue, currentValue) -> oldValue,
LinkedHashMap::new));
+ .collect(Collectors.<String, String, YamlTableMetaData,
Map>toMap(each -> each, each -> swapYamlTable(schema.get(each)), (oldValue,
currentValue) -> oldValue, LinkedHashMap::new));
Review comment:
Because I found that there will be a compilation error as follows:
```
incompatible types: inference variable U has incompatible equality
constraints
java.lang.Object,org.apache.shardingsphere.infra.yaml.schema.pojo.YamlTableMetaData,V
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]