Conversation
Fixed indentation (and obvious bug because of it). Removed some System.out logging, fixed other.
Doing the first refacturing. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
Logging is left commented out for when another logging mechanism is eventually added. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
Logging was commented out. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
…gged time. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
…o be read. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
… part. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
Moved Priority. --HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
--HG-- branch : eclipse-separation
`Outstanding 0 jobs (0/0)` but keeps waiting
There was a problem hiding this comment.
Looking good so far. Mentioned a couple of places where there's either blocks of code commented or unnecessary files added. Haven't yet arrived at the interesting parts.
One thing to note is the uploader. Can it be moved to another repository? Or it's too coupled with plugin-library? It also would make the reviewer a bit easier.
| package plugins.Library.util; | ||
|
|
||
| import freenet.support.Fields; // JDK6: use this instead of Arrays.binarySearch | ||
| // import freenet.support.Fields; // JDK6: use this instead of Arrays.binarySearch |
| throw new IllegalStateException("More parts done than known"); | ||
| } | ||
| pdone++; | ||
| // System.err.println("DEBUG: " + this + " done " + pdone + "/" + known); |
There was a problem hiding this comment.
Watch out these left out comments. Also in line 120, 127.
| @@ -0,0 +1,7 @@ | |||
| build | |||
There was a problem hiding this comment.
Can we remove this file? The main repository is a git repository not a mercurial (AFAIK).
| @@ -0,0 +1,7 @@ | |||
| #!/bin/sh -x | |||
There was a problem hiding this comment.
Is this file for local tests? Can we clarify it if so?
| private static int version = 36; | ||
| public static final String plugName = "Library " + getVersion(); | ||
|
|
||
|
|
| /** The uploaded index on Freenet. This never changes, it just gets updated. */ | ||
| ProtoIndex idxFreenet; | ||
|
|
||
| //<<<<<<< HEAD |
There was a problem hiding this comment.
Commented out block of code.
| // uri = hlsc.insert(ib, false, null, priorityClass, ctx); | ||
| // if (progress != null) | ||
| // progress.addPartKnown(0, true); | ||
| //<<<<<<< HEAD |
| } | ||
|
|
||
| } | ||
| //<<<<<<< HEAD |
| static { | ||
| Logger.registerClass(Packer.class); | ||
| } | ||
| // static { |
| // read local copy of aggression | ||
| int agg = getAggression(); | ||
| if(logDEBUG) Logger.debug(this, "Aggression = "+agg+" tasks size = "+tasks.size()); | ||
| // if(logDEBUG) Logger.debug(this, "Aggression = "+agg+" tasks size = "+tasks.size()); |
| public interface ArchiverFactory { | ||
| <T, S extends ObjectStreamWriter & ObjectStreamReader> | ||
| LiveArchiver<T, SimpleProgress> | ||
| newArchiver(S rw, String mime, int size, |
There was a problem hiding this comment.
Methods in interfaces should have at least rudimentary documentation, otherwise nobody will ever know what that int is meant to be…
| return edition-1; | ||
| FileInputStream fis = null; | ||
| try { | ||
| fis = new FileInputStream(new File(SpiderIndexUploader.EDITION_FILENAME)); |
| /** The uploaded index on Freenet. This never changes, it just gets updated. */ | ||
| ProtoIndex idxFreenet; | ||
|
|
||
| //<<<<<<< HEAD |
|
This PR is way too large and in rather bad shape. Are there smaller PRs this is based upon? |
No description provided.