ibessonov commented on a change in pull request #244:
URL: https://github.com/apache/ignite-3/pull/244#discussion_r678337342
##########
File path:
modules/configuration/src/main/java/org/apache/ignite/internal/configuration/tree/NamedListNode.java
##########
@@ -80,12 +88,12 @@ private NamedListNode(NamedListNode<N> node) {
/** {@inheritDoc} */
@Override public final N get(String key) {
- return map.get(key);
+ return
Optional.ofNullable(map.get(key)).map(IgniteBiTuple::getValue).orElse(null);
Review comment:
Done
##########
File path:
modules/configuration/src/main/java/org/apache/ignite/internal/configuration/tree/NamedListNode.java
##########
@@ -80,12 +88,12 @@ private NamedListNode(NamedListNode<N> node) {
/** {@inheritDoc} */
@Override public final N get(String key) {
- return map.get(key);
+ return
Optional.ofNullable(map.get(key)).map(IgniteBiTuple::getValue).orElse(null);
}
/** {@inheritDoc} */
@Override public N get(int index) throws IndexOutOfBoundsException {
- return map.get(index);
+ return
Optional.ofNullable(map.get(index)).map(IgniteBiTuple::getValue).orElse(null);
Review comment:
Done
--
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]