8042654: [javadoc] revert the default methods list.sort to Collections.sort
Reviewed-by: jfranck, jjg
This commit is contained in:
parent
ad489d2ce3
commit
15ebe0dcbf
@ -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);
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user