Author: toad
Date: 2009-04-02 16:46:22 +0000 (Thu, 02 Apr 2009)
New Revision: 26364

Modified:
   trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
indent


Modified: trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2009-04-02 16:46:01 UTC (rev 26363)
+++ trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2009-04-02 16:46:22 UTC (rev 26364)
@@ -298,23 +298,23 @@
        public void maybeRemove(RemoveRandom r, ObjectContainer container) {
                int count = 0;
                synchronized(this) {
-               while(true) {
-               int found = -1;
-                       for(int i=0;i<grabArrays.length;i++) {
-                               if(grabArrays[i] == r) {
-                                       found = i;
+                       while(true) {
+                               int found = -1;
+                               for(int i=0;i<grabArrays.length;i++) {
+                                       if(grabArrays[i] == r) {
+                                               found = i;
+                                               break;
+                                       }
+                               }
+                               if(found != -1) {
+                                       count++;
+                                       if(count > 1) Logger.error(this, "Found 
"+r+" many times in "+this, new Exception("error"));
+                                       removeElement(found);
+                               } else {
                                        break;
                                }
                        }
-               if(found != -1) {
-                       count++;
-                       if(count > 1) Logger.error(this, "Found "+r+" many 
times in "+this, new Exception("error"));
-                       removeElement(found);
-               } else {
-                       break;
                }
-               }
-               }
                if(count == 0) Logger.error(this, "Not in parent: "+r+" for 
"+this, new Exception("error"));
                else if(persistent) {
                        container.store(this);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to