Library v33 (bugfix for 32, NPE, oops)
Introduce FreenetURI.deriveRequestURIFromInsertURI by moving
ClinetPutBase.getPublicURI(FreenetURI uri) to it:
- It's not a static function anymore, it acts upon the FreenetURI object
on which it was called. Notice that the Eclipse feature for moving
functions automatically changed the code to that - nice. Needed to
manually fix some of the changes though.
- While fixing the auto-moved-code, I've also made the function more
readable by introducing two variables "newURI" and "originalURI".
Add unit test for FreenetURI.deriveRequestURIFromInsertURI()
Cleanup FreenetURI.deriveRequestURIFromInsertURI():
- Use originalURI instead of "this" everywhere.
- Use isCHK()/isSSK()/... instead of string comparison of keytype
Fix my English
Add proper documentation to FreenetURI.deriveRequestURIFromInsertURI():
- Add JavaDoc
- Add a message to the thrown IllegalArgumentException()