8042654: [javadoc] revert the default methods list.sort to Collections.sort

Reviewed-by: jfranck, jjg
This commit is contained in:
Kumar Srinivasan 2014-05-07 15:54:16 -07:00
parent ad489d2ce3
commit 15ebe0dcbf
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ public class ClassUseWriter extends SubWriterHolderWriter {
Map<String,List<ProgramElementDoc>> map = new HashMap<>();
List<? extends ProgramElementDoc> list= classMap.get(classdoc.qualifiedName());
if (list != null) {
list.sort(Util.makeComparatorForClassUse());
Collections.sort(list, Util.makeComparatorForClassUse());
for (ProgramElementDoc doc : list) {
PackageDoc pkg = doc.containingPackage();
pkgSet.add(pkg);

View File

@ -112,7 +112,7 @@ public class IndexBuilder {
*/
protected void sortIndexMap() {
for (List<Doc> docs : indexmap.values()) {
docs.sort(Util.makeComparatorForIndexUse());
Collections.sort(docs, Util.makeComparatorForIndexUse());
}
}