Author: brett
Date: Thu Dec  3 04:25:43 2009
New Revision: 886676

URL: http://svn.apache.org/viewvc?rev=886676&view=rev
Log:
[MRM-1293] minor cleanup of unused fields

Modified:
    
archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java

Modified: 
archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java
URL: 
http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java?rev=886676&r1=886675&r2=886676&view=diff
==============================================================================
--- 
archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java
 (original)
+++ 
archiva/branches/MRM-1025/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java
 Thu Dec  3 04:25:43 2009
@@ -97,8 +97,6 @@
 
     protected String next;
 
-    protected int[] range = new int[2];
-
     protected int page = 1;
 
     protected int rowCount = 100;
@@ -107,8 +105,6 @@
 
     public static final String BLANK = "blank";
 
-    public static final String BASIC = "basic";
-
     private static Boolean jasperPresent;
 
     private Collection<String> repositoryIds;
@@ -140,7 +136,7 @@
 
     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 @@
     {
         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( "" ) ) )
         {


Reply via email to