freenet/fred-staging — pull request #101 by Thynix (2012-07-02 19:03:00+00:00)
Title: Cleanup

* Sanity checks in Serializer: don't allow a malicious message to lead to allocating gigabytes of memory.
* Synchronization improvements in Serializer and MessageFilter.
* Convert member fields to local where possible.
* Change constants to static final.
* Should HTMLFilter booleans be constant? Why not remove branching?
* Remove member fields which are never read.
* Remove redundant variables.
* Remove unnecessary "final" from static and private methods:
* Private methods cannot be meaningfully overridden.
* Overridden static methods can still be accessed via superclass.