From 33a918bee364806992bdf1220e3f88cdb455b3c0 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Tue, 11 Oct 2005 16:40:37 +0000 Subject: [PATCH] compilation fix git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312913 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/maven/plugins/site/SiteMojo.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java index 8242c331dc..d4fd84808a 100644 --- a/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java +++ b/maven-plugins/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java @@ -226,8 +226,8 @@ public class SiteMojo Map categories = categorizeReports( reports ); Comparator reportComparator = new ReportComparator(); - List projectInfos = Collections.sort( (List) categories.get( MavenReport.CATEGORY_PROJECT_INFORMATION ), reportComparator ); - List projectReports = Collections.sort( (List) categories.get( MavenReport.CATEGORY_PROJECT_REPORTS ), reportComparator ); + List projectInfos = (List) categories.get( MavenReport.CATEGORY_PROJECT_INFORMATION ); + List projectReports = (List) categories.get( MavenReport.CATEGORY_PROJECT_REPORTS ); if ( projectInfos == null ) { @@ -239,6 +239,9 @@ public class SiteMojo projectReports = Collections.EMPTY_LIST; } + Collections.sort( projectInfos, reportComparator ); + Collections.sort( projectReports, reportComparator ); + try { List localesList = initLocalesList();