Author: toad
Date: 2007-08-31 15:08:56 +0000 (Fri, 31 Aug 2007)
New Revision: 14939
Modified:
trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
Indent
Modified: trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
2007-08-31 15:08:12 UTC (rev 14938)
+++ trunk/freenet/src/freenet/client/async/SimpleManifestPutter.java
2007-08-31 15:08:56 UTC (rev 14939)
@@ -239,32 +239,34 @@
public void start() throws InsertException {
logMINOR = Logger.shouldLog(Logger.MINOR, this);
- if(logMINOR) Logger.minor(this, "Starting "+this);
+ if (logMINOR)
+ Logger.minor(this, "Starting " + this);
PutHandler[] running;
- synchronized(this) {
- running = (PutHandler[])
runningPutHandlers.toArray(new PutHandler[runningPutHandlers.size()]);
+ synchronized (this) {
+ running = (PutHandler[]) runningPutHandlers.toArray(new
PutHandler[runningPutHandlers.size()]);
}
- try {
- for(int i=0;i<running.length;i++) {
- running[i].start();
- if(logMINOR)
- Logger.minor(this,
"Started "+i+" of "+running.length);
- if(isFinished()) {
- if(logMINOR)
-
Logger.minor(this, "Already finished, killing start() on "+this);
- return;
- }
- }
- if(logMINOR) Logger.minor(this,
"Started "+running.length+" PutHandler's for "+this);
- if(running.length == 0) {
- insertedAllFiles = true;
- gotAllMetadata();
- }
- } catch (InsertException e) {
- cancelAndFinish();
- throw e;
+ try {
+ for (int i = 0; i < running.length; i++) {
+ running[i].start();
+ if (logMINOR)
+ Logger.minor(this, "Started " + i + "
of " + running.length);
+ if (isFinished()) {
+ if (logMINOR)
+ Logger.minor(this, "Already
finished, killing start() on " + this);
+ return;
}
+ }
+ if (logMINOR)
+ Logger.minor(this, "Started " + running.length
+ " PutHandler's for " + this);
+ if (running.length == 0) {
+ insertedAllFiles = true;
+ gotAllMetadata();
+ }
+ } catch (InsertException e) {
+ cancelAndFinish();
+ throw e;
+ }
}
private void makePutHandlers(HashMap manifestElements, HashMap
putHandlersByName) throws InsertException {