From 15ebe0dcbfb2715c0a2915ba7c1028feec9094cf Mon Sep 17 00:00:00 2001 From: Kumar Srinivasan Date: Wed, 7 May 2014 15:54:16 -0700 Subject: [PATCH] 8042654: [javadoc] revert the default methods list.sort to Collections.sort Reviewed-by: jfranck, jjg --- .../com/sun/tools/doclets/formats/html/ClassUseWriter.java | 2 +- .../sun/tools/doclets/internal/toolkit/util/IndexBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java index e1f509bdabc..f1bb90158b6 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java @@ -180,7 +180,7 @@ public class ClassUseWriter extends SubWriterHolderWriter { Map> map = new HashMap<>(); List 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); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java b/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java index ad8be7ad48c..502a2cb02a8 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/IndexBuilder.java @@ -112,7 +112,7 @@ public class IndexBuilder { */ protected void sortIndexMap() { for (List docs : indexmap.values()) { - docs.sort(Util.makeComparatorForIndexUse()); + Collections.sort(docs, Util.makeComparatorForIndexUse()); } }