Skip to content

Commit 6d529fe

Browse files
committed
Add comment on use of TreeSet
1 parent 82ed4d4 commit 6d529fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/transport/TcpTransport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public TcpTransport(String transportName, Settings settings, ThreadPool threadPo
255255
throw new IllegalArgumentException("feature settings must have default [true] value");
256256
}
257257
});
258+
// use a sorted set to present the features in a consistent order
258259
this.features = new TreeSet<>(defaultFeatures.names()).toArray(new String[defaultFeatures.names().size()]);
259260
}
260261
}

0 commit comments

Comments
 (0)