Author: toad
Date: 2009-04-20 18:30:41 +0000 (Mon, 20 Apr 2009)
New Revision: 27104

Modified:
   trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
Some assertions


Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java      2009-04-20 
18:28:41 UTC (rev 27103)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java      2009-04-20 
18:30:41 UTC (rev 27104)
@@ -742,6 +742,8 @@
                for(int i=0;i<checkStore.length;i++) {
                        checkStore[i] = keysWatching.get(i+offset).getNodeKey();
                }
+               assert(offset + checkStore.length == keysWatching.size());
+               
assert(keysWatching.get(keysWatching.size()-1).getURI().uskForSSK().getSuggestedEdition()
 == lastCheck);
                if(logMINOR) Logger.minor(this, "Checking from "+firstCheck+" 
to "+lastCheck+" for "+this+" : "+origUSK);
                SendableGet storeChecker = new SendableGet(parent) {
                        

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

Reply via email to