Author: nextgens
Date: 2007-02-25 13:52:00 +0000 (Sun, 25 Feb 2007)
New Revision: 11913

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
trivial: those arrays ought to be declared as "final"

Modified: trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2007-02-25 13:08:42 UTC (rev 11912)
+++ trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2007-02-25 13:52:00 UTC (rev 11913)
@@ -91,7 +91,7 @@
        private static final int MIN_RETRY_COUNT = 3;
        private String choosenPriorityScheduler; 

-       private int[] tweakedPrioritySelector = { 
+       private final int[] tweakedPrioritySelector = { 
                        RequestStarter.MAXIMUM_PRIORITY_CLASS,
                        RequestStarter.MAXIMUM_PRIORITY_CLASS,
                        RequestStarter.MAXIMUM_PRIORITY_CLASS,
@@ -127,7 +127,7 @@

                        RequestStarter.MINIMUM_PRIORITY_CLASS
        };
-       private int[] prioritySelector = {
+       private final int[] prioritySelector = {
                        RequestStarter.MAXIMUM_PRIORITY_CLASS,
                        RequestStarter.INTERACTIVE_PRIORITY_CLASS,
                        RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS, 
@@ -147,7 +147,10 @@
                allRequestsByClientRequest = new HashMap();

                this.name = name;
-               sc.register(name+"_priority_policy", PRIORITY_HARD, 
name.hashCode(), true, false, "Priority policy of the "+name+"scheduler", "Set 
the priority policy scheme used by the scheduler. Could be one of 
["+PRIORITY_HARD+", "+PRIORITY_SOFT+ ']',
+               sc.register(name+"_priority_policy", PRIORITY_HARD, 
name.hashCode(), true, false,
+                               "Priority policy of the "+name+"scheduler",
+                               "Set the priority policy scheme used by the 
scheduler. Could be one of ["+
+                               PRIORITY_HARD+", "+PRIORITY_SOFT+ ']',
                                new PrioritySchedulerCallback(this));
                this.choosenPriorityScheduler = 
sc.getString(name+"_priority_policy");
                logMINOR = Logger.shouldLog(Logger.MINOR, this);


Reply via email to