Skip to content

Commit

Permalink
Add comment on use of TreeSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontedor committed Jun 1, 2018
1 parent 82ed4d4 commit 6d529fe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ public TcpTransport(String transportName, Settings settings, ThreadPool threadPo
throw new IllegalArgumentException("feature settings must have default [true] value");
}
});
// use a sorted set to present the features in a consistent order
this.features = new TreeSet<>(defaultFeatures.names()).toArray(new String[defaultFeatures.names().size()]);
}
}
Expand Down

0 comments on commit 6d529fe

Please sign in to comment.