You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2019/02/22 07:45:45 UTC
[flink] 14/17: [hotfix] [core] LinkedOptionalMap should collect
keys in LinkedHashSet to guarantee ordering
This is an automated email from the ASF dual-hosted git repository.
tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 52b49c8c38b5c3bf86db723c0e4a125271709750
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Wed Feb 20 13:14:45 2019 +0800
[hotfix] [core] LinkedOptionalMap should collect keys in LinkedHashSet to guarantee ordering
---
flink-core/src/main/java/org/apache/flink/util/LinkedOptionalMap.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flink-core/src/main/java/org/apache/flink/util/LinkedOptionalMap.java b/flink-core/src/main/java/org/apache/flink/util/LinkedOptionalMap.java
index 30c7b54..a17dca4 100644
--- a/flink-core/src/main/java/org/apache/flink/util/LinkedOptionalMap.java
+++ b/flink-core/src/main/java/org/apache/flink/util/LinkedOptionalMap.java
@@ -134,7 +134,7 @@ public final class LinkedOptionalMap<K, V> {
.stream()
.filter(LinkedOptionalMap::keyOrValueIsAbsent)
.map(Entry::getKey)
- .collect(Collectors.toSet());
+ .collect(Collectors.toCollection(LinkedHashSet::new));
}
/**