Use LinkedHashSet

This commit is contained in:
Norman Maurer 2013-03-11 06:38:39 +01:00
parent e203618007
commit 2406a9f8b8

View File

@ -16,7 +16,7 @@
package io.netty.channel;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
@ -56,7 +56,7 @@ public final class ChannelPromiseAggregator implements ChannelFutureListener {
} else {
size = 2;
}
pendingPromises = new HashSet<ChannelPromise>(size);
pendingPromises = new LinkedHashSet<ChannelPromise>(size);
}
for (ChannelPromise p: promises) {
if (p == null) {