Author: blured75
Date: 2005-11-05 20:38:58 +0000 (Sat, 05 Nov 2005)
New Revision: 7483

Modified:
   trunk/freenet/src/freenet/support/CPUInformation/CPUID.java
   trunk/freenet/src/freenet/support/CPUInformation/UnknownCPUException.java
   trunk/freenet/src/freenet/support/IllegalBase64Exception.java
   trunk/freenet/src/freenet/support/Logger.java
   trunk/freenet/src/freenet/support/PromiscuousItemException.java
   trunk/freenet/src/freenet/support/VirginItemException.java
   trunk/freenet/src/freenet/support/WouldBlockException.java
   
trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java
   trunk/freenet/src/freenet/support/math/SimpleRunningAverage.java
   trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
   trunk/freenet/src/org/spaceroots/mantissa/random/MersenneTwister.java
Log:
Correcting non neccessary import clauses and unused variables

Modified: trunk/freenet/src/freenet/support/CPUInformation/CPUID.java
===================================================================
--- trunk/freenet/src/freenet/support/CPUInformation/CPUID.java 2005-11-05 
20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/CPUInformation/CPUID.java 2005-11-05 
20:38:58 UTC (rev 7483)
@@ -94,16 +94,7 @@
                CPUIDResult c = doCPUID(1);
                return (c.EAX >> 4) & 0xf;
        }
-       private static int getCPUExtendedModel()
-       {
-               CPUIDResult c = doCPUID(1);
-               return (c.EAX >> 16) & 0xf;
-       }
-       private static int getCPUType()
-       {
-               CPUIDResult c = doCPUID(1);
-               return (c.EAX >> 12) & 0xf;
-       }
+
        private static int getCPUExtendedFamily()
        {
                CPUIDResult c = doCPUID(1);

Modified: 
trunk/freenet/src/freenet/support/CPUInformation/UnknownCPUException.java
===================================================================
--- trunk/freenet/src/freenet/support/CPUInformation/UnknownCPUException.java   
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/CPUInformation/UnknownCPUException.java   
2005-11-05 20:38:58 UTC (rev 7483)
@@ -8,6 +8,7 @@
  *
  */
 public class UnknownCPUException extends RuntimeException {
+       static final long serialVersionUID = -1;
        public UnknownCPUException() {
                super();
        }

Modified: trunk/freenet/src/freenet/support/IllegalBase64Exception.java
===================================================================
--- trunk/freenet/src/freenet/support/IllegalBase64Exception.java       
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/IllegalBase64Exception.java       
2005-11-05 20:38:58 UTC (rev 7483)
@@ -7,6 +7,8 @@
 public class IllegalBase64Exception
   extends Exception
 {
+       
+       static final long serialVersionUID = -1;
   public IllegalBase64Exception(String descr)
   {
     super(descr);

Modified: trunk/freenet/src/freenet/support/Logger.java
===================================================================
--- trunk/freenet/src/freenet/support/Logger.java       2005-11-05 20:37:43 UTC 
(rev 7482)
+++ trunk/freenet/src/freenet/support/Logger.java       2005-11-05 20:38:58 UTC 
(rev 7483)
@@ -1,9 +1,5 @@
 package freenet.support;

-import java.io.IOException;
-
-import freenet.io.comm.UdpSocketManager;
-
 /**
  * @author Iakin


Modified: trunk/freenet/src/freenet/support/PromiscuousItemException.java
===================================================================
--- trunk/freenet/src/freenet/support/PromiscuousItemException.java     
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/PromiscuousItemException.java     
2005-11-05 20:38:58 UTC (rev 7483)
@@ -11,6 +11,8 @@
  */
 public class PromiscuousItemException extends RuntimeException {

+       static final long serialVersionUID = -1;
+       
     PromiscuousItemException(DoublyLinkedList.Item item) {
         super(item.toString());
     }

Modified: trunk/freenet/src/freenet/support/VirginItemException.java
===================================================================
--- trunk/freenet/src/freenet/support/VirginItemException.java  2005-11-05 
20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/VirginItemException.java  2005-11-05 
20:38:58 UTC (rev 7483)
@@ -6,7 +6,7 @@
  * @author tavin
  */
 public class VirginItemException extends RuntimeException {
-    
+       static final long serialVersionUID = -1;
     VirginItemException(DoublyLinkedList.Item item) {
         super(item.toString());
     }

Modified: trunk/freenet/src/freenet/support/WouldBlockException.java
===================================================================
--- trunk/freenet/src/freenet/support/WouldBlockException.java  2005-11-05 
20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/WouldBlockException.java  2005-11-05 
20:38:58 UTC (rev 7483)
@@ -4,5 +4,5 @@
  * Thrown when we would have to block but have been told not to.
  */
 public class WouldBlockException extends Exception {
-
+       static final long serialVersionUID = -1;
 }

Modified: 
trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java
===================================================================
--- 
trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java 
    2005-11-05 20:37:43 UTC (rev 7482)
+++ 
trunk/freenet/src/freenet/support/math/BootstrappingDecayingRunningAverage.java 
    2005-11-05 20:38:58 UTC (rev 7483)
@@ -20,7 +20,8 @@
  */
 public class BootstrappingDecayingRunningAverage implements
         RunningAverage {
-
+       
+       static final long serialVersionUID = -1;
     public final Object clone() {
         return new BootstrappingDecayingRunningAverage(this);
     }

Modified: trunk/freenet/src/freenet/support/math/SimpleRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/SimpleRunningAverage.java    
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/math/SimpleRunningAverage.java    
2005-11-05 20:38:58 UTC (rev 7483)
@@ -8,7 +8,7 @@
  * @author amphibian
  */
 public class SimpleRunningAverage implements RunningAverage {
-
+       static final long serialVersionUID = -1;
     final double[] refs;
     int nextSlotPtr=0;
     int curLen=0;

Modified: trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java
===================================================================
--- trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/freenet/support/math/TimeDecayingRunningAverage.java      
2005-11-05 20:38:58 UTC (rev 7483)
@@ -63,6 +63,7 @@
  */
 public class TimeDecayingRunningAverage implements RunningAverage {

+       static final long serialVersionUID = -1;
     static final int MAGIC = 0x5ff4ac92;

     public final Object clone() {

Modified: trunk/freenet/src/org/spaceroots/mantissa/random/MersenneTwister.java
===================================================================
--- trunk/freenet/src/org/spaceroots/mantissa/random/MersenneTwister.java       
2005-11-05 20:37:43 UTC (rev 7482)
+++ trunk/freenet/src/org/spaceroots/mantissa/random/MersenneTwister.java       
2005-11-05 20:38:58 UTC (rev 7483)
@@ -69,6 +69,8 @@
 public class MersenneTwister
   extends Random {

+       static final long serialVersionUID = -1;
+       
   /** Creates a new random number generator.
    * <p>The instance is initialized using the current time as the
    * seed.</p>


Reply via email to