From: Brett Porter Date: Thu, 3 Dec 2009 04:25:43 +0000 (+0000) Subject: [MRM-1293] minor cleanup of unused fields X-Git-Tag: archiva-1.4-M1~1017^2~103 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ee251d807f639dcdadc35982913e71277112f25;p=archiva.git [MRM-1293] minor cleanup of unused fields git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@886676 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java index 988438f20..5341f6eda 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java @@ -97,8 +97,6 @@ public class GenerateReportAction protected String next; - protected int[] range = new int[2]; - protected int page = 1; protected int rowCount = 100; @@ -107,8 +105,6 @@ public class GenerateReportAction public static final String BLANK = "blank"; - public static final String BASIC = "basic"; - private static Boolean jasperPresent; private Collection repositoryIds; @@ -140,7 +136,7 @@ public class GenerateReportAction private DataLimits limits = new DataLimits(); - private String[] datePatterns = + private static final String[] datePatterns = new String[]{"MM/dd/yy", "MM/dd/yyyy", "MMMMM/dd/yyyy", "MMMMM/dd/yy", "dd MMMMM yyyy", "dd/MM/yy", "dd/MM/yyyy", "yyyy/MM/dd", "yyyy-MM-dd", "yyyy-dd-MM", "MM-dd-yyyy", "MM-dd-yy"}; @@ -675,8 +671,8 @@ public class GenerateReportAction { Constraint constraint; - range[0] = ( page - 1 ) * rowCount; - range[1] = ( page * rowCount ) + 1; // Add 1 to check if it's the last page or not. + int[] range = + new int[]{( page - 1 ) * rowCount, ( page * rowCount ) + 1}; // Add 1 to check if it's the last page or not. if ( groupId != null && ( !groupId.equals( "" ) ) ) {