compilation fix

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-11 16:40:37 +00:00
parent 7eecaeadb8
commit 33a918bee3
1 changed files with 5 additions and 2 deletions

View File

@ -226,8 +226,8 @@ public class SiteMojo
Map categories = categorizeReports( reports ); Map categories = categorizeReports( reports );
Comparator reportComparator = new ReportComparator(); Comparator reportComparator = new ReportComparator();
List projectInfos = Collections.sort( (List) categories.get( MavenReport.CATEGORY_PROJECT_INFORMATION ), reportComparator ); List projectInfos = (List) categories.get( MavenReport.CATEGORY_PROJECT_INFORMATION );
List projectReports = Collections.sort( (List) categories.get( MavenReport.CATEGORY_PROJECT_REPORTS ), reportComparator ); List projectReports = (List) categories.get( MavenReport.CATEGORY_PROJECT_REPORTS );
if ( projectInfos == null ) if ( projectInfos == null )
{ {
@ -239,6 +239,9 @@ public class SiteMojo
projectReports = Collections.EMPTY_LIST; projectReports = Collections.EMPTY_LIST;
} }
Collections.sort( projectInfos, reportComparator );
Collections.sort( projectReports, reportComparator );
try try
{ {
List localesList = initLocalesList(); List localesList = initLocalesList();